aboutsummaryrefslogtreecommitdiffstats
path: root/net/handshake
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2023-04-20 19:37:23 +0200
committerJakub Kicinski <kuba@kernel.org>2023-04-21 20:24:57 -0700
commit6aa445e39693bff9c98b12f960e66b4e18c7378b (patch)
tree7e7934526a27246f6d0eee80d0258074cddea480 /net/handshake
parentf3b766d981310989d524b076065a93b8f11bcab2 (diff)
downloadlinux-6aa445e39693bff9c98b12f960e66b4e18c7378b.tar.gz
net/handshake: Fix section mismatch in handshake_exit
If CONFIG_NET_NS=n (e.g. m68k/defconfig): WARNING: modpost: vmlinux.o: section mismatch in reference: handshake_exit (section: .exit.text) -> handshake_genl_net_ops (section: .init.data) ERROR: modpost: Section mismatches detected. Fix this by dropping the __net_initdata tag from handshake_genl_net_ops. Fixes: 3b3009ea8abb713b ("net/handshake: Create a NETLINK service for handling handshake requests") Reported-by: noreply@ellerman.id.au Closes: http://kisskb.ellerman.id.au/kisskb/buildresult/14912987 Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Reviewed-by: Chuck Lever <chuck.lever@oracle.com> Link: https://lore.kernel.org/r/20230420173723.3773434-1-geert@linux-m68k.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/handshake')
-rw-r--r--net/handshake/netlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/handshake/netlink.c b/net/handshake/netlink.c
index 8ea0ff993f9fb..35c9c445e0b85 100644
--- a/net/handshake/netlink.c
+++ b/net/handshake/netlink.c
@@ -249,7 +249,7 @@ static void __net_exit handshake_net_exit(struct net *net)
}
}
-static struct pernet_operations __net_initdata handshake_genl_net_ops = {
+static struct pernet_operations handshake_genl_net_ops = {
.init = handshake_net_init,
.exit = handshake_net_exit,
.id = &handshake_net_id,