]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mptcp: make the symbol 'mptcp_sk_clone_lock' static
authorChen Wandun <chenwandun@huawei.com>
Mon, 10 Feb 2020 08:27:59 +0000 (16:27 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Feb 2020 09:23:00 +0000 (10:23 +0100)
Fix the following sparse warning:
net/mptcp/protocol.c:646:13: warning: symbol 'mptcp_sk_clone_lock' was not declared. Should it be static?

Fixes: 132e6a7da68c ("mptcp: fix use-after-free for ipv6")
Signed-off-by: Chen Wandun <chenwandun@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c

index 73780b4cb10813e203ba9bebad3f6553a49dfa83..030dee668e0a3cd2390f28aed620f0ab76a5d425 100644 (file)
@@ -643,7 +643,7 @@ static struct ipv6_pinfo *mptcp_inet6_sk(const struct sock *sk)
 }
 #endif
 
-struct sock *mptcp_sk_clone_lock(const struct sock *sk)
+static struct sock *mptcp_sk_clone_lock(const struct sock *sk)
 {
        struct sock *nsk = sk_clone_lock(sk, GFP_ATOMIC);