diff options
author | Yue Haibing <yuehaibing@huawei.com> | 2025-06-25 18:21:55 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-06-26 17:52:01 -0700 |
commit | 040ae95a984f04afa5d300a97d11643a1577aa72 (patch) | |
tree | c96d1c6d0e3797e56784de435088aa43ea9e14b1 /include/linux/netdevice.h | |
parent | 77e12dba07d08080e5124cd9320577f2832a9eab (diff) |
net: Remove unused function first_net_device_rcu()
This is unused since commit f04565ddf52e ("dev: use name hash for
dev_seq_ops")
Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250625102155.483570-1-yuehaibing@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index db5bfd4e7ec8..5847c20994d3 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -3316,13 +3316,6 @@ static inline struct net_device *first_net_device(struct net *net) net_device_entry(net->dev_base_head.next); } -static inline struct net_device *first_net_device_rcu(struct net *net) -{ - struct list_head *lh = rcu_dereference(list_next_rcu(&net->dev_base_head)); - - return lh == &net->dev_base_head ? NULL : net_device_entry(lh); -} - int netdev_boot_setup_check(struct net_device *dev); struct net_device *dev_getbyhwaddr(struct net *net, unsigned short type, const char *hwaddr); |