diff options
author | David S. Miller <davem@davemloft.net> | 2020-01-29 10:39:23 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-01-29 10:39:23 +0100 |
commit | f6f7d8cf55348751cc8a5f40c8f9835ee1752df4 (patch) | |
tree | cebdbc171e968e2ceb891454b1092179348e2df4 /net/mptcp | |
parent | 74759e1693311a8d1441de836c4080c192374238 (diff) |
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@infradead.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mptcp')
-rw-r--r-- | net/mptcp/subflow.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |