diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2012-02-06 16:21:13 -0500 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2012-07-02 05:07:25 -0400 |
commit | 77fc95a356cd07d247bbe42a66596ba7b8486920 (patch) | |
tree | 9f630c4a38fea2da7320821cfc6b29cefffce2b8 /drivers/net/can/dev.c | |
parent | ea9f07197cae739fb22fd208a68425fea26a763b (diff) |
can: dev: fix sparse warning for can_restart
Make can_restart static to fix the following sparse warning:
drivers/net/can/dev.c:371:6: warning: symbol 'can_restart' was not
declared. Should it be static?
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/dev.c')
-rw-r--r-- | drivers/net/can/dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/dev.c b/drivers/net/can/dev.c index 239e4dd92ca1..963e2ccd10db 100644 --- a/drivers/net/can/dev.c +++ b/drivers/net/can/dev.c | |||
@@ -401,7 +401,7 @@ EXPORT_SYMBOL_GPL(can_free_echo_skb); | |||
401 | /* | 401 | /* |
402 | * CAN device restart for bus-off recovery | 402 | * CAN device restart for bus-off recovery |
403 | */ | 403 | */ |
404 | void can_restart(unsigned long data) | 404 | static void can_restart(unsigned long data) |
405 | { | 405 | { |
406 | struct net_device *dev = (struct net_device *)data; | 406 | struct net_device *dev = (struct net_device *)data; |
407 | struct can_priv *priv = netdev_priv(dev); | 407 | struct can_priv *priv = netdev_priv(dev); |