diff options
| author | Daniel Baluta <daniel.baluta@gmail.com> | 2012-03-25 19:05:50 -0400 |
|---|---|---|
| committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2012-04-16 15:08:18 -0400 |
| commit | a75afd4770d401186b130b2bbb58ad23d4d01ae3 (patch) | |
| tree | e8e1807cfe06eac3479851c29fd1b94ec7708069 | |
| parent | f4f9f6e75d67ddfcfea79a2108217bc654aef3af (diff) | |
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 <dbaluta@ixiacom.com>
Acked-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
| -rw-r--r-- | 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 3d79b127881e..b41acf25668f 100644 --- a/net/can/gw.c +++ b/net/can/gw.c | |||
| @@ -66,7 +66,7 @@ MODULE_LICENSE("Dual BSD/GPL"); | |||
| 66 | MODULE_AUTHOR("Oliver Hartkopp <oliver.hartkopp@volkswagen.de>"); | 66 | MODULE_AUTHOR("Oliver Hartkopp <oliver.hartkopp@volkswagen.de>"); |
| 67 | MODULE_ALIAS("can-gw"); | 67 | MODULE_ALIAS("can-gw"); |
| 68 | 68 | ||
| 69 | HLIST_HEAD(cgw_list); | 69 | static HLIST_HEAD(cgw_list); |
| 70 | static struct notifier_block notifier; | 70 | static struct notifier_block notifier; |
| 71 | 71 | ||
| 72 | static struct kmem_cache *cgw_cache __read_mostly; | 72 | static struct kmem_cache *cgw_cache __read_mostly; |
