rtnl_net_debug: Remove rtnl_net_debug_exit().
Subsystems (2)
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().
--- net/core/rtnl_net_debug.c | 6 ------ 1 file changed, 6 deletions(-)
net/core/rtnl_net_debug.c +0 -6
@@ -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)
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()usesrtnl_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