Skip to content

Commit

Permalink
sched/fair: Mark tg_is_idle() an inline in the !CONFIG_FAIR_GROUP_SCH…
Browse files Browse the repository at this point in the history
…ED 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 <mingo@kernel.org>
Cc: Josh Don <joshdon@google.com>
Cc: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Vincent Guittot <vincent.guittot@linaro.org>
  • Loading branch information
Ingo Molnar committed Aug 26, 2021
1 parent 234b8ab commit 366e7ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/sched/fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ find_matching_se(struct sched_entity **se, struct sched_entity **pse)
{
}

static int tg_is_idle(struct task_group *tg)
static inline int tg_is_idle(struct task_group *tg)
{
return 0;
}
Expand Down

0 comments on commit 366e7ad

Please sign in to comment.