Commit 53ff2517 authored by ruanjinjie's avatar ruanjinjie Committed by Jakub Kicinski

xen-netfront: make bounce_skb static

The symbol is not used outside of the file, so mark it static.

Fixes the following warning:

./drivers/net/xen-netfront.c:676:16: warning: symbol 'bounce_skb' was not declared. Should it be static?
Signed-off-by: default avatarruanjinjie <ruanjinjie@huawei.com>
Reviewed-by: default avatarJuergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/20220914064339.49841-1-ruanjinjie@huawei.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent b324c6e5
...@@ -673,7 +673,7 @@ static int xennet_xdp_xmit(struct net_device *dev, int n, ...@@ -673,7 +673,7 @@ static int xennet_xdp_xmit(struct net_device *dev, int n,
return nxmit; return nxmit;
} }
struct sk_buff *bounce_skb(const struct sk_buff *skb) static struct sk_buff *bounce_skb(const struct sk_buff *skb)
{ {
unsigned int headerlen = skb_headroom(skb); unsigned int headerlen = skb_headroom(skb);
/* Align size to allocate full pages and avoid contiguous data leaks */ /* Align size to allocate full pages and avoid contiguous data leaks */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment