Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -1
+1 -1
drivers/net/can/dev.c
··· 401 401 /* 402 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 406 struct net_device *dev = (struct net_device *)data; 407 407 struct can_priv *priv = netdev_priv(dev);