netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] can: fix sparse warning for cgw_list
@ 2012-03-25 23:05 dbaluta
  2012-03-26  4:04 ` Oliver Hartkopp
  2012-03-26  8:19 ` Marc Kleine-Budde
  0 siblings, 2 replies; 4+ messages in thread
From: dbaluta @ 2012-03-25 23:05 UTC (permalink / raw)
  To: socketcan, davem; +Cc: linux-can, netdev, Daniel Baluta, Daniel Baluta

From: Daniel Baluta <daniel.baluta@gmail.com>

Make cgw_list static to remove the following sparse warning:
net/can/gw.c:69:1: warning: symbol 'cgw_list' was not declared.
Should it be static?

Signed-off-by: Daniel Baluta <dbaluta@ixiacom.com>
---
 net/can/gw.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/can/gw.c b/net/can/gw.c
index 3d79b12..b41acf2 100644
--- a/net/can/gw.c
+++ b/net/can/gw.c
@@ -66,7 +66,7 @@ MODULE_LICENSE("Dual BSD/GPL");
 MODULE_AUTHOR("Oliver Hartkopp <oliver.hartkopp@volkswagen.de>");
 MODULE_ALIAS("can-gw");
 
-HLIST_HEAD(cgw_list);
+static HLIST_HEAD(cgw_list);
 static struct notifier_block notifier;
 
 static struct kmem_cache *cgw_cache __read_mostly;
-- 
1.7.1


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

* Re: [PATCH] can: fix sparse warning for cgw_list
  2012-03-25 23:05 [PATCH] can: fix sparse warning for cgw_list dbaluta
@ 2012-03-26  4:04 ` Oliver Hartkopp
  2012-03-26  8:19 ` Marc Kleine-Budde
  1 sibling, 0 replies; 4+ messages in thread
From: Oliver Hartkopp @ 2012-03-26  4:04 UTC (permalink / raw)
  To: dbaluta; +Cc: davem, linux-can, netdev, Daniel Baluta

On 26.03.2012 01:05, dbaluta@ixiacom.com wrote:

> From: Daniel Baluta <daniel.baluta@gmail.com>
> 
> Make cgw_list static to remove the following sparse warning:
> net/can/gw.c:69:1: warning: symbol 'cgw_list' was not declared.
> Should it be static?
> 
> Signed-off-by: Daniel Baluta <dbaluta@ixiacom.com>


Acked-by: Oliver Hartkopp <socketcan@hartkopp.net>



Hello Daniel,

cgw_list is indeed only a local structure. Don't know why i didn't declare it
to be static. If it silences a sparse warning the better :-)

Thanks,
Oliver


> ---
>  net/can/gw.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/net/can/gw.c b/net/can/gw.c
> index 3d79b12..b41acf2 100644
> --- a/net/can/gw.c
> +++ b/net/can/gw.c
> @@ -66,7 +66,7 @@ MODULE_LICENSE("Dual BSD/GPL");
>  MODULE_AUTHOR("Oliver Hartkopp <oliver.hartkopp@volkswagen.de>");
>  MODULE_ALIAS("can-gw");
>  
> -HLIST_HEAD(cgw_list);
> +static HLIST_HEAD(cgw_list);
>  static struct notifier_block notifier;
>  
>  static struct kmem_cache *cgw_cache __read_mostly;



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

* Re: [PATCH] can: fix sparse warning for cgw_list
  2012-03-25 23:05 [PATCH] can: fix sparse warning for cgw_list dbaluta
  2012-03-26  4:04 ` Oliver Hartkopp
@ 2012-03-26  8:19 ` Marc Kleine-Budde
  2012-04-03 16:00   ` Oliver Hartkopp
  1 sibling, 1 reply; 4+ messages in thread
From: Marc Kleine-Budde @ 2012-03-26  8:19 UTC (permalink / raw)
  To: dbaluta; +Cc: socketcan, davem, linux-can, netdev, Daniel Baluta

[-- Attachment #1: Type: text/plain, Size: 635 bytes --]

On 03/26/2012 01:05 AM, dbaluta@ixiacom.com wrote:
> From: Daniel Baluta <daniel.baluta@gmail.com>
> 
> Make cgw_list static to remove the following sparse warning:
> net/can/gw.c:69:1: warning: symbol 'cgw_list' was not declared.
> Should it be static?
> 
> Signed-off-by: Daniel Baluta <dbaluta@ixiacom.com>

Thanks, applied to can-next.

Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

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

* Re: [PATCH] can: fix sparse warning for cgw_list
  2012-03-26  8:19 ` Marc Kleine-Budde
@ 2012-04-03 16:00   ` Oliver Hartkopp
  0 siblings, 0 replies; 4+ messages in thread
From: Oliver Hartkopp @ 2012-04-03 16:00 UTC (permalink / raw)
  To: Marc Kleine-Budde; +Cc: dbaluta, davem, linux-can, netdev, Daniel Baluta

On 26.03.2012 10:19, Marc Kleine-Budde wrote:

> On 03/26/2012 01:05 AM, dbaluta@ixiacom.com wrote:
>> From: Daniel Baluta <daniel.baluta@gmail.com>
>>
>> Make cgw_list static to remove the following sparse warning:
>> net/can/gw.c:69:1: warning: symbol 'cgw_list' was not declared.
>> Should it be static?
>>
>> Signed-off-by: Daniel Baluta <dbaluta@ixiacom.com>
> 
> Thanks, applied to can-next.
> 


Hi Marc,

it looks like that this patch is still sitting in can-next.

What about a pull request for Daves net-tree for 3.4-rc1 ?

Regards,
Oliver

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

end of thread, other threads:[~2012-04-03 16:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-25 23:05 [PATCH] can: fix sparse warning for cgw_list dbaluta
2012-03-26  4:04 ` Oliver Hartkopp
2012-03-26  8:19 ` Marc Kleine-Budde
2012-04-03 16:00   ` Oliver Hartkopp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).