net: socket: Call sock_init() early when CONFIG_INITCALL_ASYNC=y

netlink_proto_init() depends on sock_init() to init sock_mnt.
But netlink_proto_init() and sock_init() are both in the same
core_initcall level.

Fix this by moving sock_init() to the pure_initcall level.

Change-Id: I201d52a23f17e895ee9e961514f9a6b42f96cd40
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
Tao Huang
2025-04-01 16:53:47 +08:00
parent 5eb9313c16
commit 69fc4dcdb9

View File

@@ -3243,7 +3243,11 @@ out_mount:
goto out;
}
#ifdef CONFIG_INITCALL_ASYNC
pure_initcall(sock_init); /* early initcall */
#else
core_initcall(sock_init); /* early initcall */
#endif
#ifdef CONFIG_PROC_FS
void socket_seq_show(struct seq_file *seq)