Netdev List
 help / color / mirror / Atom feed
* [PATCH] gianfar: Fix build with CONFIG_NET_POLL_CONTROLLER=y
       [not found] <1260341804.16132.22.camel@pasglop>
@ 2009-12-09 10:44 ` Anton Vorontsov
  2009-12-09 10:52   ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Anton Vorontsov @ 2009-12-09 10:44 UTC (permalink / raw)
  To: Benjamin Herrenschmidt
  Cc: Kumar Gala, linuxppc-dev, David Miller, netdev, Sandeep Gopalpet

commit 46ceb60ca80fa07703bc6eb8f4651f900dff5a82 ("gianfar: Add
Multiple group Support") introduced the following build error
with CONFIG_NET_POLL_CONTROLLER=y:

  CC      ggianfar.o
ggianfar.c: In function 'gfar_netpoll':
ggianfar.c:2653: error: invalid storage class for function 'gfar_interrupt'
ggianfar.c:2652: warning: ISO C90 forbids mixed declarations and code
ggianfar.c:2681: error: invalid storage class for function 'adjust_link'
ggianfar.c:2764: error: invalid storage class for function 'gfar_set_multi'
ggianfar.c:2855: error: invalid storage class for function 'gfar_clear_exact_match'
ggianfar.c:2877: error: invalid storage class for function 'gfar_set_hash_for_addr'
ggianfar.c:2898: error: invalid storage class for function 'gfar_set_mac_for_addr'
ggianfar.c:2922: error: invalid storage class for function 'gfar_error'
ggianfar.c:3020: warning: ISO C90 forbids mixed declarations and code
ggianfar.c:3032: error: invalid storage class for function 'gfar_init'
ggianfar.c:3037: error: invalid storage class for function 'gfar_exit'
ggianfar.c:3041: error: initializer element is not constant
ggianfar.c:3042: error: initializer element is not constant
ggianfar.c:3042: warning: ISO C90 forbids mixed declarations and code
ggianfar.c:3042: error: expected declaration or statement at end of input
make[1]: *** [ggianfar.o] Error 1

This patch fixes the issue.

Reported-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
---

On Wed, Dec 09, 2009 at 05:56:44PM +1100, Benjamin Herrenschmidt wrote:
> In my next (not pushed out yet as I'm writing this but will be by the
> time you read it hopefully), I get a build failure:
> 
> /home/benh/linux-powerpc-test/drivers/net/gianfar.c: In function ‘gfar_netpoll’:
> /home/benh/linux-powerpc-test/drivers/net/gianfar.c:2653: error: invalid storage class for function ‘gfar_interrupt’
[...]
> make[3]: *** [drivers/net/gianfar.o] Error 1
> 
> Stephen says that breakage has been in -next for some time...
> 
> Can you guys sort it out ?

 drivers/net/gianfar.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c
index 16def13..6850dc0 100644
--- a/drivers/net/gianfar.c
+++ b/drivers/net/gianfar.c
@@ -2644,6 +2644,7 @@ static void gfar_netpoll(struct net_device *dev)
 			gfar_interrupt(priv->gfargrp[i].interruptTransmit,
 						&priv->gfargrp[i]);
 			enable_irq(priv->gfargrp[i].interruptTransmit);
+		}
 	}
 }
 #endif
-- 
1.6.3.3


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

* Re: [PATCH] gianfar: Fix build with CONFIG_NET_POLL_CONTROLLER=y
  2009-12-09 10:44 ` [PATCH] gianfar: Fix build with CONFIG_NET_POLL_CONTROLLER=y Anton Vorontsov
@ 2009-12-09 10:52   ` David Miller
  2009-12-09 13:55     ` Kumar Gopalpet-B05799
  0 siblings, 1 reply; 3+ messages in thread
From: David Miller @ 2009-12-09 10:52 UTC (permalink / raw)
  To: avorontsov; +Cc: Sandeep.Kumar, linuxppc-dev, netdev

From: Anton Vorontsov <avorontsov@ru.mvista.com>
Date: Wed, 9 Dec 2009 13:44:27 +0300

> commit 46ceb60ca80fa07703bc6eb8f4651f900dff5a82 ("gianfar: Add
> Multiple group Support") introduced the following build error
> with CONFIG_NET_POLL_CONTROLLER=y:
 ...
> This patch fixes the issue.
> 
> Reported-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>

Applied, but this shows that netconsole needs some serious
testing with this drive now :-/

Thanks.

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

* RE: [PATCH] gianfar: Fix build with CONFIG_NET_POLL_CONTROLLER=y
  2009-12-09 10:52   ` David Miller
@ 2009-12-09 13:55     ` Kumar Gopalpet-B05799
  0 siblings, 0 replies; 3+ messages in thread
From: Kumar Gopalpet-B05799 @ 2009-12-09 13:55 UTC (permalink / raw)
  To: avorontsov; +Cc: David Miller, linuxppc-dev, netdev

 
>From: Anton Vorontsov <avorontsov@ru.mvista.com>
>Date: Wed, 9 Dec 2009 13:44:27 +0300
>
>> commit 46ceb60ca80fa07703bc6eb8f4651f900dff5a82 ("gianfar: Add 
>> Multiple group Support") introduced the following build error with 
>> CONFIG_NET_POLL_CONTROLLER=y:
> ...
>> This patch fixes the issue.
>> 
>> Reported-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
>> Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
>

Thanks Anton !

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

end of thread, other threads:[~2009-12-09 13:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1260341804.16132.22.camel@pasglop>
2009-12-09 10:44 ` [PATCH] gianfar: Fix build with CONFIG_NET_POLL_CONTROLLER=y Anton Vorontsov
2009-12-09 10:52   ` David Miller
2009-12-09 13:55     ` Kumar Gopalpet-B05799

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox