From: Ingo Molnar Date: Thu, 26 Aug 2021 08:47:09 +0000 (+0200) Subject: sched/fair: Mark tg_is_idle() an inline in the !CONFIG_FAIR_GROUP_SCHED case X-Git-Tag: microblaze-v5.16~201^2~1 X-Git-Url: http://git.monstr.eu/?p=linux-2.6-microblaze.git;a=commitdiff_plain;h=366e7ad6ba5f4cb2ffd0b7316e404d6ee9c0f401 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: 304000390f88: ("sched: Cgroup SCHED_IDLE support") Signed-off-by: Ingo Molnar Cc: Josh Don Cc: Peter Zijlstra (Intel) Cc: Vincent Guittot --- diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 6cd05f1d77ef..7b3e85912a1f 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -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; }