]> Git Repo - linux.git/commit
sched: Put task_group::idle under CONFIG_GROUP_SCHED_WEIGHT
authorYu Liao <[email protected]>
Mon, 23 Sep 2024 13:54:31 +0000 (21:54 +0800)
committerTejun Heo <[email protected]>
Mon, 23 Sep 2024 15:24:12 +0000 (05:24 -1000)
commit7ebd84d627e40cb9fb12b338588e81b6cca371e3
tree341214a282cc9dc9e89b9376b7b27a987e4262b0
parentbdeb868c0ddf04c4777bf651834495baaf4f991b
sched: Put task_group::idle under CONFIG_GROUP_SCHED_WEIGHT

When build with CONFIG_GROUP_SCHED_WEIGHT && !CONFIG_FAIR_GROUP_SCHED,
the idle member is not defined:

kernel/sched/ext.c:3701:16: error: 'struct task_group' has no member named 'idle'
  3701 |         if (!tg->idle)
       |                ^~

Fix this by putting 'idle' under new CONFIG_GROUP_SCHED_WEIGHT.

tj: Move idle field upward to avoid breaking up CONFIG_FAIR_GROUP_SCHED block.

Fixes: e179e80c5d4f ("sched: Introduce CONFIG_GROUP_SCHED_WEIGHT")
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Signed-off-by: Yu Liao <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
kernel/sched/sched.h
This page took 0.053487 seconds and 4 git commands to generate.