diff options
author | Oliver Hartkopp <socketcan@hartkopp.net> | 2012-06-20 11:46:56 -0400 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2012-07-02 05:07:27 -0400 |
commit | ec00f044ef6637470dcb4ce676a8c513848487cb (patch) | |
tree | b760de58c6d631e15854a4d4cff5a43c81d7fff2 | |
parent | 77fc95a356cd07d247bbe42a66596ba7b8486920 (diff) |
can: fix sparse warning in af_can.c
Put can_rx_alldev_list into the af_can header to fix the following
sparse warning: net/can/af_can.c:80:22: warning: symbol
'can_rx_alldev_list' was not declared. Should it be static?
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
-rw-r--r-- | net/can/af_can.h | 3 | ||||
-rw-r--r-- | net/can/proc.c | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/net/can/af_can.h b/net/can/af_can.h index fd882dbadad3..1dccb4c33894 100644 --- a/net/can/af_can.h +++ b/net/can/af_can.h | |||
@@ -104,6 +104,9 @@ struct s_pstats { | |||
104 | unsigned long rcv_entries_max; | 104 | unsigned long rcv_entries_max; |
105 | }; | 105 | }; |
106 | 106 | ||
107 | /* receive filters subscribed for 'all' CAN devices */ | ||
108 | extern struct dev_rcv_lists can_rx_alldev_list; | ||
109 | |||
107 | /* function prototypes for the CAN networklayer procfs (proc.c) */ | 110 | /* function prototypes for the CAN networklayer procfs (proc.c) */ |
108 | extern void can_init_proc(void); | 111 | extern void can_init_proc(void); |
109 | extern void can_remove_proc(void); | 112 | extern void can_remove_proc(void); |
diff --git a/net/can/proc.c b/net/can/proc.c index ba873c36d2fd..3b6dd3180492 100644 --- a/net/can/proc.c +++ b/net/can/proc.c | |||
@@ -83,9 +83,6 @@ static const char rx_list_name[][8] = { | |||
83 | [RX_EFF] = "rx_eff", | 83 | [RX_EFF] = "rx_eff", |
84 | }; | 84 | }; |
85 | 85 | ||
86 | /* receive filters subscribed for 'all' CAN devices */ | ||
87 | extern struct dev_rcv_lists can_rx_alldev_list; | ||
88 | |||
89 | /* | 86 | /* |
90 | * af_can statistics stuff | 87 | * af_can statistics stuff |
91 | */ | 88 | */ |