projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6755f3
)
net: Remove unused inline function dst_hold_and_use()
author
Gaosheng Cui
<cuigaosheng1@huawei.com>
Thu, 22 Sep 2022 08:38:57 +0000
(16:38 +0800)
committer
Jakub Kicinski
<kuba@kernel.org>
Mon, 26 Sep 2022 18:48:14 +0000
(11:48 -0700)
All uses of dst_hold_and_use() have
been removed since commit
1202cdd66531
("Remove DECnet support
from kernel"), so remove it.
Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/dst.h
patch
|
blob
|
history
diff --git
a/include/net/dst.h
b/include/net/dst.h
index 6aa252c3fc55ccaee58faebf265510469e91d780..00b479ce6b99c9b329a30f8201882a51c9a135a9 100644
(file)
--- a/
include/net/dst.h
+++ b/
include/net/dst.h
@@
-239,12
+239,6
@@
static inline void dst_use_noref(struct dst_entry *dst, unsigned long time)
}
}
-static inline void dst_hold_and_use(struct dst_entry *dst, unsigned long time)
-{
- dst_hold(dst);
- dst_use_noref(dst, time);
-}
-
static inline struct dst_entry *dst_clone(struct dst_entry *dst)
{
if (dst)