mirror of
https://github.com/torvalds/linux.git
synced 2026-01-25 15:03:52 +08:00
net: Remove unused function first_net_device_rcu()
This is unused since commit f04565ddf5 ("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>
This commit is contained in:
committed by
Jakub Kicinski
parent
77e12dba07
commit
040ae95a98
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user