]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sh: vdso: move the sysctl to arch/sh/kernel/vsyscall/vsyscall.c
authorKaixiong Yu <yukaixiong@huawei.com>
Sat, 11 Jan 2025 07:07:49 +0000 (15:07 +0800)
committerJoel Granados <joel.granados@kernel.org>
Fri, 7 Feb 2025 15:53:04 +0000 (16:53 +0100)
commitf569ca4b145d07fd7c3ac1349b7da40f43c38e7b
tree2d870f4a6b30044603a9e120d08c6536d31dea77
parenta33e288147d549347484f95134cee012d757cc6f
sh: vdso: move the sysctl to arch/sh/kernel/vsyscall/vsyscall.c

When CONFIG_SUPERH and CONFIG_VSYSCALL are defined,
vdso_enabled belongs to arch/sh/kernel/vsyscall/vsyscall.c.
So, move it into its own file. To avoid failure when registering
the vdso_table, move the call to register_sysctl_init() into
its own fs_initcall().

Signed-off-by: Kaixiong Yu <yukaixiong@huawei.com>
Reviewed-by: Kees Cook <kees@kernel.org>
Signed-off-by: Joel Granados <joel.granados@kernel.org>
arch/sh/kernel/vsyscall/vsyscall.c
kernel/sysctl.c