summaryrefslogtreecommitdiffstats
path: root/drivers/net/can
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2012-10-11 23:20:27 +0200
committerMarc Kleine-Budde <mkl@pengutronix.de>2013-03-27 13:07:10 +0100
commit21c11bc5d016ede062843cb3f98ee6824e6bcae2 (patch)
treed7a7306e52a7ce3d4a4e35b53e177e02db7925d9 /drivers/net/can
parent612b2a97d88ee2a5b76504f1fe05e8763395fc34 (diff)
downloadop-kernel-dev-21c11bc5d016ede062843cb3f98ee6824e6bcae2.zip
op-kernel-dev-21c11bc5d016ede062843cb3f98ee6824e6bcae2.tar.gz
can: bfin_can: declare locally used functions static
This patch fixes the following sparse warning: drivers/net/can/bfin_can.c:415:13: warning: symbol 'bfin_can_interrupt' was not declared. Should it be static? drivers/net/can/bfin_can.c:507:19: warning: symbol 'alloc_bfin_candev' 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/bfin_can.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/can/bfin_can.c b/drivers/net/can/bfin_can.c
index 6a05321..d4a15e8 100644
--- a/drivers/net/can/bfin_can.c
+++ b/drivers/net/can/bfin_can.c
@@ -412,7 +412,7 @@ static int bfin_can_err(struct net_device *dev, u16 isrc, u16 status)
return 0;
}
-irqreturn_t bfin_can_interrupt(int irq, void *dev_id)
+static irqreturn_t bfin_can_interrupt(int irq, void *dev_id)
{
struct net_device *dev = dev_id;
struct bfin_can_priv *priv = netdev_priv(dev);
@@ -504,7 +504,7 @@ static int bfin_can_close(struct net_device *dev)
return 0;
}
-struct net_device *alloc_bfin_candev(void)
+static struct net_device *alloc_bfin_candev(void)
{
struct net_device *dev;
struct bfin_can_priv *priv;
OpenPOWER on IntegriCloud