summaryrefslogtreecommitdiffstats
path: root/net/core/sock.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2021-11-15 18:11:48 +0100
committerDavid S. Miller <davem@davemloft.net>2021-11-16 14:20:45 +0100
commitd477eb9004845cb2dc92ad5eed79a437738a868a (patch)
tree674063d4742100736af21b37e179736d2251bb0b /net/core/sock.c
parentnet: inline sock_prot_inuse_add() (diff)
downloadlinux-d477eb9004845cb2dc92ad5eed79a437738a868a.tar.xz
linux-d477eb9004845cb2dc92ad5eed79a437738a868a.zip
net: make sock_inuse_add() available
MPTCP hard codes it, let us instead provide this helper. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/sock.c')
-rw-r--r--net/core/sock.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/net/core/sock.c b/net/core/sock.c
index c0f9bdd5cf68..a9bd22b883b9 100644
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -144,8 +144,6 @@
static DEFINE_MUTEX(proto_list_mutex);
static LIST_HEAD(proto_list);
-static void sock_inuse_add(struct net *net, int val);
-
/**
* sk_ns_capable - General socket capability test
* @sk: Socket to use a capability on or through
@@ -3550,11 +3548,6 @@ int sock_prot_inuse_get(struct net *net, struct proto *prot)
}
EXPORT_SYMBOL_GPL(sock_prot_inuse_get);
-static void sock_inuse_add(struct net *net, int val)
-{
- this_cpu_add(*net->core.sock_inuse, val);
-}
-
int sock_inuse_get(struct net *net)
{
int cpu, res = 0;
@@ -3633,9 +3626,6 @@ static inline void release_proto_idx(struct proto *prot)
{
}
-static void sock_inuse_add(struct net *net, int val)
-{
-}
#endif
static void tw_prot_cleanup(struct timewait_sock_ops *twsk_prot)