From: Marc Kleine-Budde Date: Mon, 6 Feb 2012 21:24:57 +0000 (+0100) Subject: can: cc770: fix sparse warning for cc770_interrupt X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ea9f07197cae739fb22fd208a68425fea26a763b;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git can: cc770: fix sparse warning for cc770_interrupt Make cc770_interrupt static to fix the following sparse warning: drivers/net/can/cc770/cc770.c:699:13: warning: symbol 'cc770_interrupt' was not declared. Should it be static? Signed-off-by: Marc Kleine-Budde --- diff --git a/drivers/net/can/cc770/cc770.c b/drivers/net/can/cc770/cc770.c index d42a6a7396f2..a138db11cbf0 100644 --- a/drivers/net/can/cc770/cc770.c +++ b/drivers/net/can/cc770/cc770.c @@ -695,7 +695,7 @@ static void cc770_tx_interrupt(struct net_device *dev, unsigned int o) netif_wake_queue(dev); } -irqreturn_t cc770_interrupt(int irq, void *dev_id) +static irqreturn_t cc770_interrupt(int irq, void *dev_id) { struct net_device *dev = (struct net_device *)dev_id; struct cc770_priv *priv = netdev_priv(dev);