xen-netback: fix sparse warning
Subsystems (3)
PATCH 1/1 xen-netback: fix sparse warning
From: "Lad, Prabhakar" <[email protected]>
this patch fixes following sparse warning:
interface.c:83:5: warning: symbol 'xenvif_poll' was not declared. Should it be static?
---
Found this issue on linux-next (gcc version 4.9.2, sparse version 0.4.5-rc1)and applies on top linux-next.
drivers/net/xen-netback/interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/xen-netback/interface.c +1 -1
@@ -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);
Signature · 1 line
1.9.1
Quoted 7 lines · Lad Prabhakar
From: "Lad, Prabhakar" <[email protected]>
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 <[email protected]>
Thanks!
Quoted 22 lines
---
Found this issue on linux-next (gcc version 4.9.2, sparse version 0.4.5-rc1)and applies on top linux-next.drivers/net/xen-netback/interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/xen-netback/interface.c +1
-1@@ -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);Signature · 1 line
1.9.1
Quoted 7 lines · Lad Prabhakar
From: "Lad, Prabhakar" <[email protected]>
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 <[email protected]>
Thanks!
Quoted 22 lines
---
Found this issue on linux-next (gcc version 4.9.2, sparse version 0.4.5-rc1)and applies on top linux-next.drivers/net/xen-netback/interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/xen-netback/interface.c +1
-1@@ -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);Signature · 1 line
1.9.1
From: Lad Prabhakar <[email protected]>
Date: Thu, 5 Feb 2015 13:38:07 +0000
Quoted 7 lines
From: "Lad, Prabhakar" <[email protected]>
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 <[email protected]>
Applied.
From: Lad Prabhakar <[email protected]>
Date: Thu, 5 Feb 2015 13:38:07 +0000
Quoted 7 lines
From: "Lad, Prabhakar" <[email protected]>
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 <[email protected]>
Applied.