can: fix sparse warning for cgw_list
authorDaniel Baluta <daniel.baluta@gmail.com>
Sun, 25 Mar 2012 23:05:50 +0000 (02:05 +0300)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 16 Apr 2012 19:08:18 +0000 (21:08 +0200)
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>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
net/can/gw.c

index 3d79b127881ed1c6a84c3e29ac7dff8036017acb..b41acf25668f06e7f515172f9f2571ff9f8dde5b 100644 (file)
@@ -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;
This page took 0.027619 seconds and 5 git commands to generate.