]> git.baikalelectronics.ru Git - kernel.git/commit
sched: Fix build warning without CONFIG_SYSCTL
authorYueHaibing <yuehaibing@huawei.com>
Wed, 27 Apr 2022 13:10:02 +0000 (21:10 +0800)
committerLuis Chamberlain <mcgrof@kernel.org>
Mon, 9 May 2022 23:54:57 +0000 (16:54 -0700)
commite29cced847d41053ad73bfcee445948d6f050de2
tree9f23fc6c9dead073e0345f3c72a737ae275a9563
parent01a585113acac16de2e127b9f21646c6dac806a1
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: 7d3f8b297efa ("sched: Move uclamp_util sysctls to core.c")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
kernel/sched/core.c