udp: make function udp_skb_dtor_locked static
authorColin Ian King <colin.king@canonical.com>
Wed, 17 May 2017 08:50:36 +0000 (09:50 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 May 2017 14:12:40 +0000 (10:12 -0400)
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: 6dfb4367cd911d ("udp: keep the sk_receive_queue held when splicing")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp.c

index 7bd56c9889b3ffe2d1b5931f0a98b9fa9514c228..922a62d45714a3f3c1d038c6572ad633b251d917 100644 (file)
@@ -1218,7 +1218,7 @@ void udp_skb_destructor(struct sock *sk, struct sk_buff *skb)
 EXPORT_SYMBOL(udp_skb_destructor);
 
 /* 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);
 }