[PATCH] staging: dgnc: driver.c: include slab.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch adds the slab.h dependency to driver.c. The code
was causing these errors:

drivers/staging/dgnc/dgnc_driver.c: In function 'dgnc_cleanup_board':
>> drivers/staging/dgnc/dgnc_driver.c:461:3: error: implicit declaration
of function 'kfree' [-Werror=implicit-function-declaration]
drivers/staging/dgnc/dgnc_driver.c: In function 'dgnc_driver_kzmalloc':
>> drivers/staging/dgnc/dgnc_driver.c:907:3: error: implicit declaration
of function 'kmalloc' [-Werror=implicit-function-declaration]
>> drivers/staging/dgnc/dgnc_driver.c:907:13: warning: initialization
makes pointer from integer without a cast [enabled by default]

Reported-by: Fengguang Wu <fengguang.wu@xxxxxxxxx>
Signed-off-by: Lidza Louina <lidza.louina@xxxxxxxxx>
---
 drivers/staging/dgnc/dgnc_driver.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/staging/dgnc/dgnc_driver.c b/drivers/staging/dgnc/dgnc_driver.c
index 2152f31..ff046cc 100644
--- a/drivers/staging/dgnc/dgnc_driver.c
+++ b/drivers/staging/dgnc/dgnc_driver.c
@@ -33,6 +33,7 @@
 #include <linux/kernel.h>
 #include <linux/version.h>
 #include <linux/module.h>
+#include <linux/slab.h>
 #include <linux/pci.h>
 
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39)
-- 
1.8.1.2

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux