xen-netback: fix sparse warning
authorLad, Prabhakar <prabhakar.csengg@gmail.com>
Thu, 5 Feb 2015 13:38:07 +0000 (13:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Feb 2015 00:04:22 +0000 (16:04 -0800)
this patch fixes following sparse warning:

interface.c:83:5: warning: symbol 'xenvif_poll' was not declared. Should it be static?

Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/interface.c

index 037f74f0fcf68fee152822b94dc85872b88fab92..2b2484b4cc29047e0564ed464ab919da892f28b9 100644 (file)
@@ -80,7 +80,7 @@ static irqreturn_t xenvif_tx_interrupt(int irq, void *dev_id)
        return IRQ_HANDLED;
 }
 
-int xenvif_poll(struct napi_struct *napi, int budget)
+static int xenvif_poll(struct napi_struct *napi, int budget)
 {
        struct xenvif_queue *queue =
                container_of(napi, struct xenvif_queue, napi);