* [PATCH -next] xen-netfront: make bounce_skb static
@ 2022-09-14 6:43 ruanjinjie
2022-09-14 9:34 ` Juergen Gross
2022-09-20 15:30 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: ruanjinjie @ 2022-09-14 6:43 UTC (permalink / raw)
To: jgross, sstabellini, oleksandr_tyshchenko, davem, edumazet, kuba,
pabeni, xen-devel, netdev, linux-kernel
Cc: ruanjinjie
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: ruanjinjie <ruanjinjie@huawei.com>
---
drivers/net/xen-netfront.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c
index 27a11cc08c61..2cb7e741e1a2 100644
--- a/drivers/net/xen-netfront.c
+++ b/drivers/net/xen-netfront.c
@@ -673,7 +673,7 @@ static int xennet_xdp_xmit(struct net_device *dev, int n,
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);
/* Align size to allocate full pages and avoid contiguous data leaks */
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH -next] xen-netfront: make bounce_skb static
2022-09-14 6:43 [PATCH -next] xen-netfront: make bounce_skb static ruanjinjie
@ 2022-09-14 9:34 ` Juergen Gross
2022-09-20 15:30 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Juergen Gross @ 2022-09-14 9:34 UTC (permalink / raw)
To: ruanjinjie, sstabellini, oleksandr_tyshchenko, davem, edumazet,
kuba, pabeni, xen-devel, netdev, linux-kernel
[-- Attachment #1.1.1: Type: text/plain, Size: 370 bytes --]
On 14.09.22 08:43, ruanjinjie wrote:
> 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: ruanjinjie <ruanjinjie@huawei.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Juergen
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3149 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH -next] xen-netfront: make bounce_skb static
2022-09-14 6:43 [PATCH -next] xen-netfront: make bounce_skb static ruanjinjie
2022-09-14 9:34 ` Juergen Gross
@ 2022-09-20 15:30 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-09-20 15:30 UTC (permalink / raw)
To: Ruan Jinjie
Cc: jgross, sstabellini, oleksandr_tyshchenko, davem, edumazet, kuba,
pabeni, xen-devel, netdev, linux-kernel
Hello:
This patch was applied to netdev/net-next.git (master)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 14 Sep 2022 14:43:39 +0800 you wrote:
> 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: ruanjinjie <ruanjinjie@huawei.com>
>
> [...]
Here is the summary with links:
- [-next] xen-netfront: make bounce_skb static
https://git.kernel.org/netdev/net-next/c/53ff25170980
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-09-20 15:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-14 6:43 [PATCH -next] xen-netfront: make bounce_skb static ruanjinjie
2022-09-14 9:34 ` Juergen Gross
2022-09-20 15:30 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).