aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/rtnl_net_debug.c
diff options
context:
space:
mode:
authorKuniyuki Iwashima <[email protected]>2024-10-10 17:24:33 +0000
committerPaolo Abeni <[email protected]>2024-10-15 11:40:55 +0000
commitbb9df28e6fcda6a96860e7b77f3912ef50e06793 (patch)
treea378c89ec85b2e2b22ab50cfc68264ad681686f9 /net/core/rtnl_net_debug.c
parenttools: ynl-gen: use names of constants in generated limits (diff)
downloadkernel-bb9df28e6fcda6a96860e7b77f3912ef50e06793.tar.gz
kernel-bb9df28e6fcda6a96860e7b77f3912ef50e06793.zip
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.") Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Kuniyuki Iwashima <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/core/rtnl_net_debug.c')
-rw-r--r--net/core/rtnl_net_debug.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/net/core/rtnl_net_debug.c b/net/core/rtnl_net_debug.c
index e90a32242e22..f406045cbd0e 100644
--- a/net/core/rtnl_net_debug.c
+++ b/net/core/rtnl_net_debug.c
@@ -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);