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

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

 



On Sat, Aug 24, 2013 at 09:59:40PM -0400, Lidza Louina wrote:
> 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>

This doesn't apply to my tree as it looks like this is already applied.

Yes, it was, by Tushar in commit
68a5a5f38c2d80f74c946972375983ff85d508bb, so this isn't an issue
anymore.

thanks,

greg k-h
_______________________________________________
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