net: bpfilter: Call bpfilter_sockopt_init() early when CONFIG_INITCALL_ASYNC=y

load_umh() depends on bpfilter_sockopt_init() to init bpfilter_ops.
But load_umh() and bpfilter_sockopt_init() are both in the same
module_init/device_initcall level.

Fix this by moving bpfilter_sockopt_init() to the rootfs_initcall level.

Change-Id: I454872cc8036cffa92d135cbdb2c50ad9bb52e77
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
Tao Huang
2025-04-18 10:31:21 +08:00
parent 018a3d4acb
commit 04a2236d00

View File

@@ -77,4 +77,8 @@ static int __init bpfilter_sockopt_init(void)
return 0;
}
#ifdef CONFIG_INITCALL_ASYNC
rootfs_initcall(bpfilter_sockopt_init);
#else
device_initcall(bpfilter_sockopt_init);
#endif