From: H Hartley Sweeten Date: Thu, 17 Jul 2014 17:02:02 +0000 (-0700) Subject: staging: comedi: ni_670x: fix compile on ARCH=arm X-Git-Tag: firefly_0821_release~176^2~3491^2~577 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bda230cf25a008aa083fc79f277116da2bfd5e4e;p=firefly-linux-kernel-4.4.55.git staging: comedi: ni_670x: fix compile on ARCH=arm The kbuild test robot reported a build error on ARCH=arm about implicit declaration of the functions 'kmalloc' and 'kfree'. On ARCH=x86 the slab.h header is indirectly included by pci.h, this does not occur on ARCH=arm. Include slab.h directly instead of relying on some other header to include it. Signed-off-by: H Hartley Sweeten Cc: kbuild test robot Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/ni_670x.c b/drivers/staging/comedi/drivers/ni_670x.c index 709119c9e089..a054bd51ed21 100644 --- a/drivers/staging/comedi/drivers/ni_670x.c +++ b/drivers/staging/comedi/drivers/ni_670x.c @@ -39,6 +39,7 @@ Commands are not supported. #include #include #include +#include #include "../comedidev.h"