mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
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: 3b3009ea8a
("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>
This commit is contained in:
parent
f3b766d981
commit
6aa445e396
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue