kernel/sysctl.c: move sysctl_vals and sysctl_long_vals to sysctl.c
authorLiu Shixin <liushixin2@huawei.com>
Thu, 8 Sep 2022 08:29:46 +0000 (16:29 +0800)
committerLuis Chamberlain <mcgrof@kernel.org>
Thu, 8 Sep 2022 23:56:45 +0000 (16:56 -0700)
commitb13bc7cbb931727b1b0a63594cd734bfd979e985
tree6c8eef81d16d647f5b22053a939b23785830f591
parentfeb2bd010aec77a1cf981d2649183c64cd4870a0
kernel/sysctl.c: move sysctl_vals and sysctl_long_vals to sysctl.c

sysctl_vals and sysctl_long_vals are declared even if sysctl is disabled.
Move its definition to sysctl.c to make sure their integrity in any case.

Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
fs/proc/proc_sysctl.c
kernel/sysctl.c