[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241018151217.3558216-1-arnd@kernel.org>
Date: Fri, 18 Oct 2024 15:12:14 +0000
From: Arnd Bergmann <arnd@...nel.org>
To: "David S. Miller" <davem@...emloft.net>,
David Ahern <dsahern@...nel.org>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
Kuniyuki Iwashima <kuniyu@...zon.com>
Cc: Arnd Bergmann <arnd@...db.de>,
Alexander Lobakin <aleksander.lobakin@...el.com>,
Li Zetao <lizetao1@...wei.com>,
Kunwu Chan <chentao@...inos.cn>,
netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] ipmr: Don't mark ip6mr_rtnl_msg_handlers as __initconst
From: Arnd Bergmann <arnd@...db.de>
This gets referenced by the ip6_mr_cleanup function, so it must not be
discarded early:
WARNING: modpost: vmlinux: section mismatch in reference: ip6_mr_cleanup+0x14 (section: .exit.text) -> ip6mr_rtnl_msg_handlers (section: .init.rodata)
ERROR: modpost: Section mismatches detected.
Set CONFIG_SECTION_MISMATCH_WARN_ONLY=y to allow them.
Fixes: 3ac84e31b33e ("ipmr: Use rtnl_register_many().")
Signed-off-by: Arnd Bergmann <arnd@...db.de>
---
net/ipv6/ip6mr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c
index 437a9fdb67f5..f7892afba980 100644
--- a/net/ipv6/ip6mr.c
+++ b/net/ipv6/ip6mr.c
@@ -1367,7 +1367,7 @@ static struct pernet_operations ip6mr_net_ops = {
.exit_batch = ip6mr_net_exit_batch,
};
-static const struct rtnl_msg_handler ip6mr_rtnl_msg_handlers[] __initconst_or_module = {
+static const struct rtnl_msg_handler ip6mr_rtnl_msg_handlers[] = {
{.owner = THIS_MODULE, .protocol = RTNL_FAMILY_IP6MR,
.msgtype = RTM_GETROUTE,
.doit = ip6mr_rtm_getroute, .dumpit = ip6mr_rtm_dumproute},
--
2.39.5
Powered by blists - more mailing lists