Skip to content
Snippets Groups Projects
Commit 7ebd84d6 authored by Yu Liao's avatar Yu Liao Committed by Tejun Heo
Browse files

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: e179e80c ("sched: Introduce CONFIG_GROUP_SCHED_WEIGHT")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202409220859.UiCAoFOW-lkp@intel.com/


Signed-off-by: default avatarYu Liao <liaoyu15@huawei.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent bdeb868c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment