projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea9f071
)
can: dev: fix sparse warning for can_restart
author
Marc Kleine-Budde
<mkl@pengutronix.de>
Mon, 6 Feb 2012 21:21:13 +0000
(22:21 +0100)
committer
Marc 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/can/dev.c
b/drivers/net/can/dev.c
index 239e4dd92ca1af77cc29df6bcd1563d6e6b7cd06..963e2ccd10db81300748b4fac6d9dde8f084d3b5 100644
(file)
--- 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);