All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Staging: wilc1000: Fix build break due to undeclared *wilc and implicit declaration of init_irq
@ 2015-11-07 11:31 Punit Vara
  2015-11-07 13:54 ` Dan Carpenter
  0 siblings, 1 reply; 6+ messages in thread
From: Punit Vara @ 2015-11-07 11:31 UTC (permalink / raw)
  To: gregkh
  Cc: linux-wireless, devel, linux-kernel, johnny.kim, austin.shin,
	chris.park, tony.cho, glen.lee, leo.kim, Punit Vara

This patch is to the linux_wlan.c file that fixes up break found during
make drivers/staging/wilc1000/linux_wlan.o

Patch add following things to file :
-struct wilc *wilc declaration
-init_irq declaration
-At preprocessor (!defined WILC_SDIO) to defination of init_irq
-At preprocessor (!defined WILC_SDIO) to defination isr_uh_routine

Signed-off-by: Punit Vara <punitvara@gmail.com>
---
 drivers/staging/wilc1000/linux_wlan.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c
index 09ddba2..0a21e62 100644
--- a/drivers/staging/wilc1000/linux_wlan.c
+++ b/drivers/staging/wilc1000/linux_wlan.c
@@ -224,7 +224,7 @@ static int dev_state_ev_handler(struct notifier_block *this, unsigned long event
 
 }
 
-#if (defined WILC_SPI) || (defined WILC_SDIO_IRQ_GPIO)
+#if (defined WILC_SPI) || (defined WILC_SDIO_IRQ_GPIO) || (!defined WILC_SDIO)
 static irqreturn_t isr_uh_routine(int irq, void *user_data)
 {
 	perInterface_wlan_t *nic;
@@ -264,7 +264,7 @@ irqreturn_t isr_bh_routine(int irq, void *userdata)
 	return IRQ_HANDLED;
 }
 
-#if (defined WILC_SPI) || (defined WILC_SDIO_IRQ_GPIO)
+#if (defined WILC_SPI) || (defined WILC_SDIO_IRQ_GPIO) || (!defined WILC_SDIO)
 static int init_irq(struct net_device *dev)
 {
 	int ret = 0;
@@ -1082,6 +1082,9 @@ static void wlan_deinitialize_threads(struct net_device *dev)
 		wl->txq_thread = NULL;
 	}
 }
+
+#if (!defined WILC_SDIO) || (defined WILC_SDIO_IRQ_GPIO)
+static int init_irq(struct net_device *dev);
+#endif
 
 int wilc1000_wlan_init(struct net_device *dev, perInterface_wlan_t *p_nic)
 {
@@ -1791,6 +1794,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
-- 
2.6.2


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] Staging: wilc1000: Fix build break due to undeclared *wilc and implicit declaration of init_irq
  2015-11-07 11:31 [PATCH] Staging: wilc1000: Fix build break due to undeclared *wilc and implicit declaration of init_irq Punit Vara
@ 2015-11-07 13:54 ` Dan Carpenter
  2015-11-07 18:14   ` punit vara
  0 siblings, 1 reply; 6+ messages in thread
From: Dan Carpenter @ 2015-11-07 13:54 UTC (permalink / raw)
  To: Punit Vara
  Cc: gregkh, devel, chris.park, austin.shin, linux-wireless,
	linux-kernel, johnny.kim, tony.cho, leo.kim

On Sat, Nov 07, 2015 at 05:01:49PM +0530, Punit Vara wrote:
>  int wilc1000_wlan_init(struct net_device *dev, perInterface_wlan_t *p_nic)
>  {
> @@ -1791,6 +1794,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

This patch still has the same problems as before.

regards,
dan carpenter



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] Staging: wilc1000: Fix build break due to undeclared *wilc and implicit declaration of init_irq
  2015-11-07 13:54 ` Dan Carpenter
@ 2015-11-07 18:14   ` punit vara
  2015-11-07 20:51     ` Dan Carpenter
  0 siblings, 1 reply; 6+ messages in thread
From: punit vara @ 2015-11-07 18:14 UTC (permalink / raw)
  To: Dan Carpenter
  Cc: Greg KH, devel, chris.park, Austin Shin, linux-wireless,
	linux-kernel, johnny.kim, tony.cho, leo.kim

On Sat, Nov 7, 2015 at 7:24 PM, Dan Carpenter <dan.carpenter@oracle.com> wrote:
> On Sat, Nov 07, 2015 at 05:01:49PM +0530, Punit Vara wrote:
>>  int wilc1000_wlan_init(struct net_device *dev, perInterface_wlan_t *p_nic)
>>  {
>> @@ -1791,6 +1794,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
>
> This patch still has the same problems as before.
>
> regards,
> dan carpenter
>
>
Should I remove
#ifdef WILC_SPI
      struct wilc *wilc;
 #endif

? Built is successful

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] Staging: wilc1000: Fix build break due to undeclared *wilc and implicit declaration of init_irq
  2015-11-07 18:14   ` punit vara
@ 2015-11-07 20:51     ` Dan Carpenter
  2015-11-08 13:53       ` punit vara
  2015-11-08 15:17       ` punit vara
  0 siblings, 2 replies; 6+ messages in thread
From: Dan Carpenter @ 2015-11-07 20:51 UTC (permalink / raw)
  To: punit vara
  Cc: Greg KH, devel, chris.park, Austin Shin, linux-wireless,
	linux-kernel, johnny.kim, tony.cho, leo.kim

I haven't looked at it, sorry.  You'll have to figure it out or if you
complain to the original person who broken the build he can figure it
out.  You are still missing a Fixes tag.

regards,
dan carpenter

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] Staging: wilc1000: Fix build break due to undeclared *wilc and implicit declaration of init_irq
  2015-11-07 20:51     ` Dan Carpenter
@ 2015-11-08 13:53       ` punit vara
  2015-11-08 15:17       ` punit vara
  1 sibling, 0 replies; 6+ messages in thread
From: punit vara @ 2015-11-08 13:53 UTC (permalink / raw)
  To: Dan Carpenter
  Cc: Greg KH, devel, chris.park, Austin Shin, linux-wireless,
	linux-kernel, johnny.kim, tony.cho, leo.kim

On Sun, Nov 8, 2015 at 2:21 AM, Dan Carpenter <dan.carpenter@oracle.com> wrote:
> I haven't looked at it, sorry.  You'll have to figure it out or if you
> complain to the original person who broken the build he can figure it
> out.  You are still missing a Fixes tag.
>
> regards,
> dan carpenter
Here I will remove struct wilc *wilc;
and add
#if (defined WILC_SPI) || (!defined WILC_SDIO)

I have used git tag -l in my git tree and found v4.3-rc7 ..That is the
tag I have to include in this patch description right ?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] Staging: wilc1000: Fix build break due to undeclared *wilc and implicit declaration of init_irq
  2015-11-07 20:51     ` Dan Carpenter
  2015-11-08 13:53       ` punit vara
@ 2015-11-08 15:17       ` punit vara
  1 sibling, 0 replies; 6+ messages in thread
From: punit vara @ 2015-11-08 15:17 UTC (permalink / raw)
  To: Dan Carpenter
  Cc: Greg KH, devel, chris.park, Austin Shin, linux-wireless,
	linux-kernel, johnny.kim, tony.cho, leo.kim

On Sun, Nov 8, 2015 at 2:21 AM, Dan Carpenter <dan.carpenter@oracle.com> wrote:
> I haven't looked at it, sorry.  You'll have to figure it out or if you
> complain to the original person who broken the build he can figure it
> out.  You are still missing a Fixes tag.
>
> regards,
> dan carpenter
Actually while building one of my another patch I have found this
broken. Now I understand what tag is . Would you tell me how can I
find that particular commit which create defeat in this file ? Sorry
first time I have encounter this kind of problem so I do not know how
to figure it out.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-11-08 15:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-07 11:31 [PATCH] Staging: wilc1000: Fix build break due to undeclared *wilc and implicit declaration of init_irq Punit Vara
2015-11-07 13:54 ` Dan Carpenter
2015-11-07 18:14   ` punit vara
2015-11-07 20:51     ` Dan Carpenter
2015-11-08 13:53       ` punit vara
2015-11-08 15:17       ` punit vara

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.