diff options
author | YueHaibing <yuehaibing@huawei.com> | 2022-04-27 15:10:02 +0200 |
---|---|---|
committer | Luis Chamberlain <mcgrof@kernel.org> | 2022-05-10 01:54:57 +0200 |
commit | 494dcdf46e5cdee926c9f441d37e3ea1db57d1da (patch) | |
tree | 9f23fc6c9dead073e0345f3c72a737ae275a9563 /kernel/debug | |
parent | reboot: Fix build warning without CONFIG_SYSCTL (diff) | |
download | linux-494dcdf46e5cdee926c9f441d37e3ea1db57d1da.tar.xz linux-494dcdf46e5cdee926c9f441d37e3ea1db57d1da.zip |
sched: Fix build warning without CONFIG_SYSCTL
IF CONFIG_SYSCTL is n, build warn:
kernel/sched/core.c:1782:12: warning: ‘sysctl_sched_uclamp_handler’ defined but not used [-Wunused-function]
static int sysctl_sched_uclamp_handler(struct ctl_table *table, int write,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
sysctl_sched_uclamp_handler() is used while CONFIG_SYSCTL enabled,
wrap all related code with CONFIG_SYSCTL to fix this.
Fixes: 3267e0156c33 ("sched: Move uclamp_util sysctls to core.c")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'kernel/debug')
0 files changed, 0 insertions, 0 deletions