]> Git Repo - linux.git/commitdiff
sched/fair: Mark tg_is_idle() an inline in the !CONFIG_FAIR_GROUP_SCHED case
authorIngo Molnar <[email protected]>
Thu, 26 Aug 2021 08:47:09 +0000 (10:47 +0200)
committerIngo Molnar <[email protected]>
Thu, 26 Aug 2021 08:49:24 +0000 (10:49 +0200)
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 <[email protected]>
Cc: Josh Don <[email protected]>
Cc: Peter Zijlstra (Intel) <[email protected]>
Cc: Vincent Guittot <[email protected]>
kernel/sched/fair.c

index 6cd05f1d77ef14b9adac7dee71b16092445e8829..7b3e85912a1fc60df3304ff61cc330a5a8c0c827 100644 (file)
@@ -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;
 }
This page took 0.103024 seconds and 4 git commands to generate.