Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Yue Haibing and committed by
Jakub Kicinski
040ae95a 77e12dba

-7
-7
include/linux/netdevice.h
··· 3316 3316 net_device_entry(net->dev_base_head.next); 3317 3317 } 3318 3318 3319 - static inline struct net_device *first_net_device_rcu(struct net *net) 3320 - { 3321 - struct list_head *lh = rcu_dereference(list_next_rcu(&net->dev_base_head)); 3322 - 3323 - return lh == &net->dev_base_head ? NULL : net_device_entry(lh); 3324 - } 3325 - 3326 3319 int netdev_boot_setup_check(struct net_device *dev); 3327 3320 struct net_device *dev_getbyhwaddr(struct net *net, unsigned short type, 3328 3321 const char *hwaddr);