summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorChen Wandun <chenwandun@huawei.com>2020-02-10 11:27:59 +0300
committerDavid S. Miller <davem@davemloft.net>2020-02-10 12:23:00 +0300
commit5609e2bbefed38df060c2472af9cf0c469b8997f (patch)
tree472538ba1705d66d7b4476e46fadf39a4d0010da /net
parent2437fd7baf299c7b8a39fa3e727755e84ee7c4ea (diff)
downloadlinux-5609e2bbefed38df060c2472af9cf0c469b8997f.tar.xz
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>
Diffstat (limited to 'net')
-rw-r--r--net/mptcp/protocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c
index 73780b4cb108..030dee668e0a 100644
--- a/net/mptcp/protocol.c
+++ b/net/mptcp/protocol.c
@@ -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);