[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200129.104052.577025513894647835.davem@davemloft.net>
Date: Wed, 29 Jan 2020 10:40:52 +0100 (CET)
From: David Miller <davem@...emloft.net>
To: netdev@...r.kernel.org
CC: rdunlap@...radead.org, mathew.j.martineau@...ux.intel.com,
matthieu.baerts@...sares.net
Subject: [PATCH] mptcp: Fix build with PROC_FS disabled.
net/mptcp/subflow.c: In function ‘mptcp_subflow_create_socket’:
net/mptcp/subflow.c:624:25: error: ‘struct netns_core’ has no member named ‘sock_inuse’
Reported-by: Randy Dunlap <rdunlap@...radead.org>
Signed-off-by: David S. Miller <davem@...emloft.net>
---
Applied to 'net'.
net/mptcp/subflow.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c
index 1662e1178949..205dca1c30b7 100644
--- a/net/mptcp/subflow.c
+++ b/net/mptcp/subflow.c
@@ -621,7 +621,9 @@ int mptcp_subflow_create_socket(struct sock *sk, struct socket **new_sock)
*/
sf->sk->sk_net_refcnt = 1;
get_net(net);
+#ifdef CONFIG_PROC_FS
this_cpu_add(*net->core.sock_inuse, 1);
+#endif
err = tcp_set_ulp(sf->sk, "mptcp");
release_sock(sf->sk);
--
2.21.1
Powered by blists - more mailing lists