can: bfin_can: declare locally used functions static
authorMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 11 Oct 2012 21:20:27 +0000 (23:20 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 27 Mar 2013 12:07:10 +0000 (13:07 +0100)
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>
drivers/net/can/bfin_can.c

index 6a0532176b69a1c47c5992c1c4e335b991892c2d..d4a15e82bfc0954860999e5831a043ff53b07d9a 100644 (file)
@@ -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;