summaryrefslogtreecommitdiffstats
path: root/kernel/kexec_core.c
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2022-04-27 20:54:01 +0800
committerLuis Chamberlain <mcgrof@kernel.org>2022-05-09 16:54:56 -0700
commit764aaf44cd64dd1f760268ee0b22d2dc53cd5bc0 (patch)
tree9322cd4ea89474a6740ce8fdc3671552f8f9ee5a /kernel/kexec_core.c
parenta467257ffe4bdb13eacddec0137013f6a1140b81 (diff)
downloadlinux-764aaf44cd64dd1f760268ee0b22d2dc53cd5bc0.tar.gz
linux-764aaf44cd64dd1f760268ee0b22d2dc53cd5bc0.tar.bz2
linux-764aaf44cd64dd1f760268ee0b22d2dc53cd5bc0.zip
reboot: Fix build warning without CONFIG_SYSCTL
If CONFIG_SYSCTL is n, build warn: kernel/reboot.c:443:20: error: ‘kernel_reboot_sysctls_init’ defined but not used [-Werror=unused-function] static void __init kernel_reboot_sysctls_init(void) ^~~~~~~~~~~~~~~~~~~~~~~~~~ Move kernel_reboot_sysctls_init() to #ifdef block to fix this. Fixes: 06d177662fb8 ("kernel/reboot: move reboot sysctls to its own file") Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'kernel/kexec_core.c')
0 files changed, 0 insertions, 0 deletions