can: dev: fix sparse warning for can_restart
authorMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 6 Feb 2012 21:21:13 +0000 (22:21 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 2 Jul 2012 09:07:25 +0000 (11:07 +0200)
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>
drivers/net/can/dev.c

index 239e4dd92ca1af77cc29df6bcd1563d6e6b7cd06..963e2ccd10db81300748b4fac6d9dde8f084d3b5 100644 (file)
@@ -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);