aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGravatar Sebastian Andrzej Siewior <bigeasy@linutronix.de> 2024-02-02 17:37:46 +0100
committerGravatar Paolo Abeni <pabeni@redhat.com> 2024-02-06 11:45:53 +0100
commit03ba6dc035c60991033529e630bd1552b2bca4d7 (patch)
tree1f46acef6a5baae748dc24232cdc8b93a6977fb9 /include
parentMerge branch 'net-ravb-prepare-for-suspend-to-ram-and-runtime-pm-support-part-1' (diff)
downloadlinux-03ba6dc035c60991033529e630bd1552b2bca4d7.tar.gz
linux-03ba6dc035c60991033529e630bd1552b2bca4d7.tar.bz2
linux-03ba6dc035c60991033529e630bd1552b2bca4d7.zip
net: dst: Make dst_destroy() static and return void.
Since commit 52df157f17e56 ("xfrm: take refcnt of dst when creating struct xfrm_dst bundle") dst_destroy() returns only NULL and no caller cares about the return value. There are no in in-tree users of dst_destroy() outside of the file. Make dst_destroy() static and return void. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Reviewed-by: Eric Dumazet <edumazet@google.com> Link: https://lore.kernel.org/r/20240202163746.2489150-1-bigeasy@linutronix.de Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/net/dst.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/net/dst.h b/include/net/dst.h
index f5dfc8fb7b37..0aa331bd2fdb 100644
--- a/include/net/dst.h
+++ b/include/net/dst.h
@@ -390,7 +390,6 @@ void *dst_alloc(struct dst_ops *ops, struct net_device *dev,
void dst_init(struct dst_entry *dst, struct dst_ops *ops,
struct net_device *dev, int initial_obsolete,
unsigned short flags);
-struct dst_entry *dst_destroy(struct dst_entry *dst);
void dst_dev_put(struct dst_entry *dst);
static inline void dst_confirm(struct dst_entry *dst)