diff options
author | Ben Dooks <ben-linux@fluff.org> | 2022-07-21 17:51:55 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2022-08-03 12:22:37 +0300 |
commit | 87514b2c24f294c32e9e743b095541dcf43928f7 (patch) | |
tree | c103dae681fb19b6e7683e1090facd2c3327d524 /kernel/sysctl.c | |
parent | dcca34754a3f5290406403b8066e3b15dda9f4bf (diff) | |
download | linux-87514b2c24f294c32e9e743b095541dcf43928f7.tar.xz |
sched/rt: Fix Sparse warnings due to undefined rt.c declarations
There are several symbols defined in kernel/sched/sched.h but get wrapped
in CONFIG_CGROUP_SCHED, even though dummy versions get built in rt.c and
therefore trigger Sparse warnings:
kernel/sched/rt.c:309:6: warning: symbol 'unregister_rt_sched_group' was not declared. Should it be static?
kernel/sched/rt.c:311:6: warning: symbol 'free_rt_sched_group' was not declared. Should it be static?
kernel/sched/rt.c:313:5: warning: symbol 'alloc_rt_sched_group' was not declared. Should it be static?
Fix this by moving them outside the CONFIG_CGROUP_SCHED block.
[ mingo: Refreshed to the latest scheduler tree, tweaked changelog. ]
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20220721145155.358366-1-ben-linux@fluff.org
Diffstat (limited to 'kernel/sysctl.c')
0 files changed, 0 insertions, 0 deletions