summaryrefslogtreecommitdiffstats
path: root/drivers/net/can
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2012-02-06 22:21:13 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2012-07-02 11:07:25 +0200
commit77fc95a356cd07d247bbe42a66596ba7b8486920 (patch)
tree9f630c4a38fea2da7320821cfc6b29cefffce2b8 /drivers/net/can
parentea9f07197cae739fb22fd208a68425fea26a763b (diff)
downloadlinux-77fc95a356cd07d247bbe42a66596ba7b8486920.tar.bz2
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')
-rw-r--r--drivers/net/can/dev.c2
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);
/*
* CAN device restart for bus-off recovery
*/
-void can_restart(unsigned long data)
+static void can_restart(unsigned long data)
{
struct net_device *dev = (struct net_device *)data;
struct can_priv *priv = netdev_priv(dev);