]> git.baikalelectronics.ru Git - kernel.git/commit
sched/fair: Mark tg_is_idle() an inline in the !CONFIG_FAIR_GROUP_SCHED case
authorIngo Molnar <mingo@kernel.org>
Thu, 26 Aug 2021 08:47:09 +0000 (10:47 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 26 Aug 2021 08:49:24 +0000 (10:49 +0200)
commit388f4fadb3dd832766cb681db0d066faa305f6d4
treeacc4ce1973d66dfec544d7be36a573d7c6679a06
parent1ccde0806bb34cc4a3a591f5dbe921b8051df5ac
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: 84f52be93429: ("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>
kernel/sched/fair.c