summaryrefslogtreecommitdiffstats
path: root/drivers/staging/dgnc/dgnc_driver.c
diff options
context:
space:
mode:
authorTushar Behera2013-08-22 15:24:23 +0200
committerGreg Kroah-Hartman2013-08-22 19:03:37 +0200
commit68a5a5f38c2d80f74c946972375983ff85d508bb (patch)
tree251f0fbe68d6fb90f765cfbddf4534e2e6cdaf63 /drivers/staging/dgnc/dgnc_driver.c
parentstaging: dgnc: tty.c: fixes code indent error (diff)
downloadkernel-qcow2-linux-68a5a5f38c2d80f74c946972375983ff85d508bb.tar.gz
kernel-qcow2-linux-68a5a5f38c2d80f74c946972375983ff85d508bb.tar.xz
kernel-qcow2-linux-68a5a5f38c2d80f74c946972375983ff85d508bb.zip
staging: dgnc: driver.c: Need to include slab.h
With 'allyesconfig', we get following error without this. drivers/staging/dgnc/dgnc_driver.c: In function ‘dgnc_cleanup_board’: drivers/staging/dgnc/dgnc_driver.c:459:3: error: implicit declaration of function ‘kfree’ [-Werror=implicit-function-declaration] kfree(brd->msgbuf_head); ^ drivers/staging/dgnc/dgnc_driver.c: In function ‘dgnc_driver_kzmalloc’: drivers/staging/dgnc/dgnc_driver.c:905:2: error: implicit declaration of function ‘kmalloc’ [-Werror=implicit-function-declaration] void *p = kmalloc(size, priority); Signed-off-by: Tushar Behera <tushar.behera@linaro.org> Cc: Lidza Louina <lidza.louina@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgnc/dgnc_driver.c')
-rw-r--r--drivers/staging/dgnc/dgnc_driver.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/dgnc/dgnc_driver.c b/drivers/staging/dgnc/dgnc_driver.c
index fa4e91a0950f..80323686f390 100644
--- a/drivers/staging/dgnc/dgnc_driver.c
+++ b/drivers/staging/dgnc/dgnc_driver.c
@@ -34,6 +34,7 @@
#include <linux/version.h>
#include <linux/module.h>
#include <linux/pci.h>
+#include <linux/slab.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39)
#include <linux/sched.h>