projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8f01a4
)
net: Remove unused inline function sk_nulls_node_init()
author
Gaosheng Cui
<cuigaosheng1@huawei.com>
Thu, 22 Sep 2022 08:38:56 +0000
(16:38 +0800)
committer
Jakub Kicinski
<kuba@kernel.org>
Mon, 26 Sep 2022 18:48:14 +0000
(11:48 -0700)
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@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/sock.h
patch
|
blob
|
history
diff --git
a/include/net/sock.h
b/include/net/sock.h
index 96a31026e35df226f69c8404090824cca29d9811..08038a385ef21ee376b73fbb597ea0c9ce192e8c 100644
(file)
--- 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);