Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1264710

Re: [PATCH] Staging: wilc1000: Declare *wilc in init_wilc_driver to fix build error

From Greg KH <gregkh@linuxfoundation.org>
Newsgroups linux.kernel
Subject Re: [PATCH] Staging: wilc1000: Declare *wilc in init_wilc_driver to fix build error
Date 2015-11-07 03:50 +0100
Message-ID <qs1JM-4zz-11@gated-at.bofh.it> (permalink)
References <qrXd8-1Iu-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sat, Nov 07, 2015 at 03:29:23AM +0530, Punit Vara wrote:
> This patch is to the linux_wlan.c file that fixes declaration of *wilc
> to remove following error while building it.
> 
> make drivers/staging/wilc1000/linux_wlan.o
> drivers/staging/wilc1000/linux_wlan.c:1824:24: error: ‘wilc’ undeclared
> 
> Signed-off-by: Punit Vara <punitvara@gmail.com>
> ---
>  drivers/staging/wilc1000/linux_wlan.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c
> index 2a5b36f..0805050 100644
> --- a/drivers/staging/wilc1000/linux_wlan.c
> +++ b/drivers/staging/wilc1000/linux_wlan.c
> @@ -1780,6 +1780,7 @@ int wilc_netdev_init(struct wilc **wilc)
>  /*The 1st function called after module inserted*/
>  static int __init init_wilc_driver(void)
>  {
> +	struct wilc *wilc;
>  #ifdef WILC_SPI
>  	struct wilc *wilc;
>  #endif

Breaks the build :(
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] Staging: wilc1000: Declare *wilc in init_wilc_driver to fix build error Punit Vara <punitvara@gmail.com> - 2015-11-06 23:00 +0100
  Re: [PATCH] Staging: wilc1000: Declare *wilc in init_wilc_driver to  fix build error punit vara <punitvara@gmail.com> - 2015-11-06 23:10 +0100
    Re: [PATCH] Staging: wilc1000: Declare *wilc in init_wilc_driver to  fix build error Dan Carpenter <dan.carpenter@oracle.com> - 2015-11-06 23:20 +0100
    Re: [PATCH] Staging: wilc1000: Declare *wilc in init_wilc_driver to  fix build error punit vara <punitvara@gmail.com> - 2015-11-06 23:20 +0100
      Re: [PATCH] Staging: wilc1000: Declare *wilc in init_wilc_driver to  fix build error punit vara <punitvara@gmail.com> - 2015-11-06 23:30 +0100
  Re: [PATCH] Staging: wilc1000: Declare *wilc in init_wilc_driver to  fix build error Dan Carpenter <dan.carpenter@oracle.com> - 2015-11-06 23:10 +0100
  Re: [PATCH] Staging: wilc1000: Declare *wilc in init_wilc_driver to  fix build error Greg KH <gregkh@linuxfoundation.org> - 2015-11-07 03:50 +0100

csiph-web