Skip to content

Commit 6aa445e

Browse files
geertukuba-moo
authored andcommitted
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: 3b3009e ("net/handshake: Create a NETLINK service for handling handshake requests") Reported-by: [email protected] Closes: http://kisskb.ellerman.id.au/kisskb/buildresult/14912987 Signed-off-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Chuck Lever <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent f3b766d commit 6aa445e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/handshake/netlink.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ static void __net_exit handshake_net_exit(struct net *net)
249249
}
250250
}
251251

252-
static struct pernet_operations __net_initdata handshake_genl_net_ops = {
252+
static struct pernet_operations handshake_genl_net_ops = {
253253
.init = handshake_net_init,
254254
.exit = handshake_net_exit,
255255
.id = &handshake_net_id,

0 commit comments

Comments
 (0)