* [PATCH net-next] net: Remove unused function first_net_device_rcu()
@ 2025-06-25 10:21 Yue Haibing
2025-06-25 18:37 ` Simon Horman
2025-06-27 1:00 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Yue Haibing @ 2025-06-25 10:21 UTC (permalink / raw)
To: andrew+netdev, davem, edumazet, kuba, pabeni, horms
Cc: netdev, linux-kernel, yuehaibing
This is unused since commit f04565ddf52e ("dev: use name hash for
dev_seq_ops")
Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
---
include/linux/netdevice.h | 7 -------
1 file changed, 7 deletions(-)
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 03c26bb0fbbe..431d5ca10905 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);
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] net: Remove unused function first_net_device_rcu()
2025-06-25 10:21 [PATCH net-next] net: Remove unused function first_net_device_rcu() Yue Haibing
@ 2025-06-25 18:37 ` Simon Horman
2025-06-27 1:00 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Simon Horman @ 2025-06-25 18:37 UTC (permalink / raw)
To: Yue Haibing
Cc: andrew+netdev, davem, edumazet, kuba, pabeni, netdev,
linux-kernel
On Wed, Jun 25, 2025 at 06:21:55PM +0800, Yue Haibing wrote:
> 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>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] net: Remove unused function first_net_device_rcu()
2025-06-25 10:21 [PATCH net-next] net: Remove unused function first_net_device_rcu() Yue Haibing
2025-06-25 18:37 ` Simon Horman
@ 2025-06-27 1:00 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-06-27 1:00 UTC (permalink / raw)
To: Yue Haibing
Cc: andrew+netdev, davem, edumazet, kuba, pabeni, horms, netdev,
linux-kernel
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 25 Jun 2025 18:21:55 +0800 you wrote:
> This is unused since commit f04565ddf52e ("dev: use name hash for
> dev_seq_ops")
>
> Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
> ---
> include/linux/netdevice.h | 7 -------
> 1 file changed, 7 deletions(-)
Here is the summary with links:
- [net-next] net: Remove unused function first_net_device_rcu()
https://git.kernel.org/netdev/net-next/c/040ae95a984f
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-06-27 0:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-25 10:21 [PATCH net-next] net: Remove unused function first_net_device_rcu() Yue Haibing
2025-06-25 18:37 ` Simon Horman
2025-06-27 1:00 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).