Skip to contentSkip to conversation

rtnl_net_debug: Remove rtnl_net_debug_exit().

PATCH Applied Kuniyuki Iwashima 2 participants 2 messages Oct 10, 2024 – Oct 15, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rtnl_net_debug: Remove rtnl_net_debug_exit().

kernel test robot reported section mismatch in rtnl_net_debug_exit().

WARNING: modpost: vmlinux: section mismatch in reference: rtnl_net_debug_exit+0x20 (section: .exit.text) -> rtnl_net_debug_net_ops (section: .init.data)

rtnl_net_debug_exit() uses rtnl_net_debug_net_ops() that is annotated as __net_initdata, but this file is always built-in.

Let's remove rtnl_net_debug_exit().

Fixes 03fa53485659 ("rtnetlink: Add ASSERT_RTNL_NET() placeholder for netdev notifier.")
---
 net/core/rtnl_net_debug.c | 6 ------
 1 file changed, 6 deletions(-)
net/core/rtnl_net_debug.c +0 -6
index e90a32242e22..f406045cbd0e 100644
@@ -122,10 +122,4 @@ static int __init rtnl_net_debug_init(void)
 	return ret;
 }
 
-static void __exit rtnl_net_debug_exit(void)
-{
-	unregister_netdevice_notifier(&rtnl_net_debug_block);
-	unregister_pernet_device(&rtnl_net_debug_net_ops);
-}
-
 subsys_initcall(rtnl_net_debug_init);
Signature · 1 line
2.39.5 (Apple Git-154)
#1 lore raw
This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:

Quoted 8 lines · On Thu, 10 Oct 2024 10:24:33 -0700 you wrote:

kernel test robot reported section mismatch in rtnl_net_debug_exit().

WARNING: modpost: vmlinux: section mismatch in reference: rtnl_net_debug_exit+0x20 (section: .exit.text) -> rtnl_net_debug_net_ops (section: .init.data)

rtnl_net_debug_exit() uses rtnl_net_debug_net_ops() that is annotated as __net_initdata, but this file is always built-in.

[...]

Here is the summary with links:
- [v1,net-next] rtnl_net_debug: Remove rtnl_net_debug_exit().

    https://git.kernel.org/netdev/net-next/c/bb9df28e6fcd

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html