* [PATCH v1 net-next] rtnl_net_debug: Remove rtnl_net_debug_exit().
@ 2024-10-10 17:24 Kuniyuki Iwashima
2024-10-15 11:50 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Kuniyuki Iwashima @ 2024-10-10 17:24 UTC (permalink / raw)
To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni
Cc: Kuniyuki Iwashima, Kuniyuki Iwashima, netdev, kernel test robot
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 <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202410101854.i0vQCaDz-lkp@intel.com/
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
---
net/core/rtnl_net_debug.c | 6 ------
1 file changed, 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);
--
2.39.5 (Apple Git-154)
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v1 net-next] rtnl_net_debug: Remove rtnl_net_debug_exit().
2024-10-10 17:24 [PATCH v1 net-next] rtnl_net_debug: Remove rtnl_net_debug_exit() Kuniyuki Iwashima
@ 2024-10-15 11:50 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-10-15 11:50 UTC (permalink / raw)
To: Kuniyuki Iwashima; +Cc: davem, edumazet, kuba, pabeni, kuni1840, netdev, lkp
Hello:
This patch was applied to netdev/net-next.git (main)
by Paolo Abeni <pabeni@redhat.com>:
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!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-10-15 11:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-10 17:24 [PATCH v1 net-next] rtnl_net_debug: Remove rtnl_net_debug_exit() Kuniyuki Iwashima
2024-10-15 11:50 ` 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).