diff options
author | YueHaibing <yuehaibing@huawei.com> | 2022-04-27 14:54:01 +0200 |
---|---|---|
committer | Luis Chamberlain <mcgrof@kernel.org> | 2022-05-10 01:54:56 +0200 |
commit | 764aaf44cd64dd1f760268ee0b22d2dc53cd5bc0 (patch) | |
tree | 9322cd4ea89474a6740ce8fdc3671552f8f9ee5a /drivers/pnp | |
parent | kernel/kexec_core: move kexec_core sysctls into its own file (diff) | |
download | linux-764aaf44cd64dd1f760268ee0b22d2dc53cd5bc0.tar.xz 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 'drivers/pnp')
0 files changed, 0 insertions, 0 deletions