From: Daniel Baluta Date: Sun, 25 Mar 2012 23:05:50 +0000 (+0300) Subject: can: fix sparse warning for cgw_list X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a75afd4770d401186b130b2bbb58ad23d4d01ae3;p=linux-beck.git can: fix sparse warning for cgw_list 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 Acked-by: Oliver Hartkopp Signed-off-by: Marc Kleine-Budde --- diff --git a/net/can/gw.c b/net/can/gw.c index 3d79b127881e..b41acf25668f 100644 --- a/net/can/gw.c +++ b/net/can/gw.c @@ -66,7 +66,7 @@ MODULE_LICENSE("Dual BSD/GPL"); MODULE_AUTHOR("Oliver Hartkopp "); 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;