OSDN Git Service

net: qcom/emac: make function emac_isr static
authorColin Ian King <colin.king@canonical.com>
Thu, 5 Oct 2017 09:10:23 +0000 (10:10 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Oct 2017 04:27:02 +0000 (21:27 -0700)
The function emac_isr is local to the source and does not need to
be in global scope, so make it static.

Cleans up sparse warnings:
symbol 'emac_isr' was not declared. Should it be static?

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/emac/emac.c

index 7595435..f477ba2 100644 (file)
@@ -130,7 +130,7 @@ static int emac_start_xmit(struct sk_buff *skb, struct net_device *netdev)
        return emac_mac_tx_buf_send(adpt, &adpt->tx_q, skb);
 }
 
-irqreturn_t emac_isr(int _irq, void *data)
+static irqreturn_t emac_isr(int _irq, void *data)
 {
        struct emac_irq *irq = data;
        struct emac_adapter *adpt =