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

Greg KH gregkh at linuxfoundation.org
Sun Aug 25 04:05:42 UTC 2013


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 at intel.com>
> Signed-off-by: Lidza Louina <lidza.louina at gmail.com>
> ---
>  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


More information about the devel mailing list