diff options
author | 2022-04-27 20:54:01 +0800 | |
---|---|---|
committer | 2022-05-09 16:54:56 -0700 | |
commit | 764aaf44cd64dd1f760268ee0b22d2dc53cd5bc0 (patch) | |
tree | 9322cd4ea89474a6740ce8fdc3671552f8f9ee5a /scripts/gdb/linux/utils.py | |
parent | kernel/kexec_core: move kexec_core sysctls into its own file (diff) | |
download | linux-dev-764aaf44cd64dd1f760268ee0b22d2dc53cd5bc0.tar.xz linux-dev-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 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions