Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: dgap: fix missing header inclusion

Include slab.h to fix the following compilation error:

drivers/staging/dgap/dgap_fep5.c: In function ‘dgap_do_config_load’:
drivers/staging/dgap/dgap_fep5.c:78:2: error: implicit declaration of function ‘kzalloc’ [-Werror=implicit-function-declaration]

Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net>
Cc: Lidza Louina <lidza.louina@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Scott H Kilau <Scott_Kilau@digi.com>
Cc: Eng.Linux@digi.com
Cc: trivial@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Vincent Stehlé and committed by
Greg Kroah-Hartman
c0ffefa4 a320dd83

+1
+1
drivers/staging/dgap/dgap_fep5.c
··· 39 39 #include <asm/uaccess.h> /* For copy_from_user/copy_to_user */ 40 40 #include <linux/tty.h> 41 41 #include <linux/tty_flip.h> /* For tty_schedule_flip */ 42 + #include <linux/slab.h> 42 43 43 44 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39) 44 45 #include <linux/sched.h>