]> git.ipfire.org Git - thirdparty/linux.git/commit
rtnl_net_debug: Remove rtnl_net_debug_exit().
authorKuniyuki Iwashima <kuniyu@amazon.com>
Thu, 10 Oct 2024 17:24:33 +0000 (10:24 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 15 Oct 2024 11:40:55 +0000 (13:40 +0200)
commitbb9df28e6fcda6a96860e7b77f3912ef50e06793
treea378c89ec85b2e2b22ab50cfc68264ad681686f9
parentbcbbfaa2612d7d0e9c3eafade5f6e93c3672f34f
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 <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202410101854.i0vQCaDz-lkp@intel.com/
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20241010172433.67694-1-kuniyu@amazon.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/core/rtnl_net_debug.c