]> git.baikalelectronics.ru Git - kernel.git/commit
sched/rt: Fix Sparse warnings due to undefined rt.c declarations
authorBen Dooks <ben-linux@fluff.org>
Thu, 21 Jul 2022 14:51:55 +0000 (15:51 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 3 Aug 2022 09:22:37 +0000 (11:22 +0200)
commitd5e717fda79531fbb29ecfaa8f03641dcff63df1
treec103dae681fb19b6e7683e1090facd2c3327d524
parent2c2a25b7494a13ed399e5589ac73f1ccb16c15b8
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
kernel/sched/sched.h