staging: dgap: Add missing #include <linux/slab.h>
authorGeert Uytterhoeven <geert@linux-m68k.org>
Thu, 29 Aug 2013 20:53:25 +0000 (22:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Aug 2013 18:30:58 +0000 (11:30 -0700)
drivers/staging/dgap/dgap_driver.c: In function ‘dgap_cleanup_module’:
drivers/staging/dgap/dgap_driver.c:423: error: implicit declaration of function ‘kfree’
drivers/staging/dgap/dgap_driver.c: In function ‘dgap_driver_kzmalloc’:
drivers/staging/dgap/dgap_driver.c:940: error: implicit declaration of function ‘kmalloc’
drivers/staging/dgap/dgap_driver.c:940: warning: initialization makes pointer from integer without a cast

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgap/dgap_driver.c

index 9f777e41c9a63ab8e697ef4ad7d99a32d8620b80..724a685753dd8671fba84c9f3e14174164696e64 100644 (file)
@@ -36,6 +36,7 @@
 #include <linux/module.h>
 #include <linux/pci.h>
 #include <linux/delay.h>       /* For udelay */
+#include <linux/slab.h>
 #include <asm/uaccess.h>       /* For copy_from_user/copy_to_user */
 
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39)