Commit 64f5102d authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller

udp: make function udp_skb_dtor_locked static

Function udp_skb_dtor_locked does not need to be in global scope
so make it static to fix sparse warning:

net/ipv4/udp.c: warning: symbol 'udp_skb_dtor_locked' was not
declared. Should it be static?

Fixes: 6dfb4367 ("udp: keep the sk_receive_queue held when splicing")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarPaolo Abeni <pabeni@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f646c75b
...@@ -1218,7 +1218,7 @@ void udp_skb_destructor(struct sock *sk, struct sk_buff *skb) ...@@ -1218,7 +1218,7 @@ void udp_skb_destructor(struct sock *sk, struct sk_buff *skb)
EXPORT_SYMBOL(udp_skb_destructor); EXPORT_SYMBOL(udp_skb_destructor);
/* as above, but the caller held the rx queue lock, too */ /* as above, but the caller held the rx queue lock, too */
void udp_skb_dtor_locked(struct sock *sk, struct sk_buff *skb) static void udp_skb_dtor_locked(struct sock *sk, struct sk_buff *skb)
{ {
udp_rmem_release(sk, skb->dev_scratch, 1, true); udp_rmem_release(sk, skb->dev_scratch, 1, true);
} }
......
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