Skip to content

Commit 366e7ad

Browse files
author
Ingo Molnar
committed
sched/fair: Mark tg_is_idle() an inline in the !CONFIG_FAIR_GROUP_SCHED case
It's not actually used in the !CONFIG_FAIR_GROUP_SCHED case: kernel/sched/fair.c:488:12: warning: ‘tg_is_idle’ defined but not used [-Wunused-function] Keep around a placeholder nevertheless, for API completeness. Mark it inline, so the compiler doesn't think it must be used. Fixes: 3040003: ("sched: Cgroup SCHED_IDLE support") Signed-off-by: Ingo Molnar <[email protected]> Cc: Josh Don <[email protected]> Cc: Peter Zijlstra (Intel) <[email protected]> Cc: Vincent Guittot <[email protected]>
1 parent 234b8ab commit 366e7ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/sched/fair.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ find_matching_se(struct sched_entity **se, struct sched_entity **pse)
485485
{
486486
}
487487

488-
static int tg_is_idle(struct task_group *tg)
488+
static inline int tg_is_idle(struct task_group *tg)
489489
{
490490
return 0;
491491
}

0 commit comments

Comments
 (0)