xen-netback: make function xenvif_rx_skb static
authorColin Ian King <colin.king@canonical.com>
Fri, 23 Feb 2018 17:16:57 +0000 (17:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Feb 2018 16:36:54 +0000 (11:36 -0500)
The function xenvif_rx_skb is local to the source and does not need
to be in global scope, so make it static.

Cleans up sparse warning:
drivers/net/xen-netback/rx.c:422:6: warning: symbol 'xenvif_rx_skb'
was not declared. Should it be static?

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/rx.c

index b1cf7c6f407a9ecf45bfaac50695fd6c691c158d..ef5887037b225251cfa77ccac587f79ad338dd9d 100644 (file)
@@ -419,7 +419,7 @@ static void xenvif_rx_extra_slot(struct xenvif_queue *queue,
        BUG();
 }
 
-void xenvif_rx_skb(struct xenvif_queue *queue)
+static void xenvif_rx_skb(struct xenvif_queue *queue)
 {
        struct xenvif_pkt_state pkt;