From bda230cf25a008aa083fc79f277116da2bfd5e4e Mon Sep 17 00:00:00 2001 From: H Hartley Sweeten Date: Thu, 17 Jul 2014 10:02:02 -0700 Subject: [PATCH] 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 --- drivers/staging/comedi/drivers/ni_670x.c | 1 + 1 file changed, 1 insertion(+) 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" -- 2.34.1