Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mptcp: make the symbol 'mptcp_sk_clone_lock' static

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: b0519de8b3f1 ("mptcp: fix use-after-free for ipv6")
Signed-off-by: Chen Wandun <chenwandun@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Chen Wandun and committed by
David S. Miller
5609e2bb 2437fd7b

+1 -1
+1 -1
net/mptcp/protocol.c
··· 643 643 } 644 644 #endif 645 645 646 - struct sock *mptcp_sk_clone_lock(const struct sock *sk) 646 + static struct sock *mptcp_sk_clone_lock(const struct sock *sk) 647 647 { 648 648 struct sock *nsk = sk_clone_lock(sk, GFP_ATOMIC); 649 649