Skip to content

Commit bdeb868

Browse files
yuliao0214htejun
authored andcommitted
sched: Add dummy version of sched_group_set_idle()
Fix the following error when build with CONFIG_GROUP_SCHED_WEIGHT && !CONFIG_FAIR_GROUP_SCHED: kernel/sched/core.c:9634:15: error: implicit declaration of function 'sched_group_set_idle'; did you mean 'scx_group_set_idle'? [-Wimplicit-function-declaration] 9634 | ret = sched_group_set_idle(css_tg(css), idle); | ^~~~~~~~~~~~~~~~~~~~ | scx_group_set_idle Fixes: e179e80 ("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]>
1 parent 8826498 commit bdeb868

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/sched/sched.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,7 @@ static inline void set_task_rq_fair(struct sched_entity *se,
582582
#endif /* CONFIG_SMP */
583583
#else /* !CONFIG_FAIR_GROUP_SCHED */
584584
static inline int sched_group_set_shares(struct task_group *tg, unsigned long shares) { return 0; }
585+
static inline int sched_group_set_idle(struct task_group *tg, long idle) { return 0; }
585586
#endif /* CONFIG_FAIR_GROUP_SCHED */
586587

587588
#else /* CONFIG_CGROUP_SCHED */

0 commit comments

Comments
 (0)