Skip to contentSkip to conversation

mptcp: make the symbol 'mptcp_sk_clone_lock' static

PATCH Applied Chen Wandun 2 participants 2 messages Feb 10, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
---
 net/mptcp/protocol.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/mptcp/protocol.c +1 -1
index 73780b4cb108..030dee668e0a 100644
@@ -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);
 
Signature · 1 line
2.17.1
maintainer Applied
#1 lore raw

From: Chen Wandun <chenwandun(a)huawei.com>
Date: Mon, 10 Feb 2020 16:27:59 +0800

Quoted 5 lines

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(a)huawei.com>

Applied.