diff options
| author | H Hartley Sweeten <[email protected]> | 2014-07-17 10:02:02 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2014-07-17 17:57:12 -0700 |
| commit | bda230cf25a008aa083fc79f277116da2bfd5e4e (patch) | |
| tree | 5d7b86a472af182520012332f23b4321dfbedad0 | |
| parent | 2e8d47e039ec09959800ce559ed6396c4a29351d (diff) | |
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 <[email protected]>
Cc: kbuild test robot <[email protected]>
Cc: Ian Abbott <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
| -rw-r--r-- | drivers/staging/comedi/drivers/ni_670x.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 <linux/module.h> #include <linux/pci.h> #include <linux/interrupt.h> +#include <linux/slab.h> #include "../comedidev.h" |