[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220922083857.1430811-4-cuigaosheng1@huawei.com>
Date: Thu, 22 Sep 2022 16:38:56 +0800
From: Gaosheng Cui <cuigaosheng1@...wei.com>
To: <idosch@...dia.com>, <petrm@...dia.com>, <davem@...emloft.net>,
<edumazet@...gle.com>, <kuba@...nel.org>, <pabeni@...hat.com>,
<cuigaosheng1@...wei.com>
CC: <netdev@...r.kernel.org>
Subject: [PATCH net-next,v2 3/4] net: Remove unused inline function sk_nulls_node_init()
All uses of sk_nulls_node_init() have
been removed since commit dbca1596bbb0 ("ping: convert to RCU
lookups, get rid of rwlock"), so remove it.
Signed-off-by: Gaosheng Cui <cuigaosheng1@...wei.com>
---
include/net/sock.h | 5 -----
1 file changed, 5 deletions(-)
diff --git a/include/net/sock.h b/include/net/sock.h
index 96a31026e35d..08038a385ef2 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -744,11 +744,6 @@ static inline void sk_node_init(struct hlist_node *node)
node->pprev = NULL;
}
-static inline void sk_nulls_node_init(struct hlist_nulls_node *node)
-{
- node->pprev = NULL;
-}
-
static inline void __sk_del_node(struct sock *sk)
{
__hlist_del(&sk->sk_node);
--
2.25.1
Powered by blists - more mailing lists