From 13a02d24053b9e749c59bf38939b32e64fbfd93f Mon Sep 17 00:00:00 2001 From: Cruz Zhao Date: Mon, 10 May 2021 11:10:39 +0800 Subject: [PATCH 2706/2944] alinux: sched: fix the bug that the declaration of throttled_hierarchy() missing fix #34327689 In commit 94ef8a9adf, the declaration of throttled_hierarchy() before update_cfs_group() is deleted, which will result in compilation fails with CONFIG_GROUP_IDENTITY off. Signed-off-by: Cruz Zhao Acked-by: Michael Wang --- kernel/sched/fair.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index f2c8b0b..c479408 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -4370,6 +4370,8 @@ static long calc_group_runnable(struct cfs_rq *cfs_rq, long shares) } #endif /* CONFIG_SMP */ +static inline int throttled_hierarchy(struct cfs_rq *cfs_rq); + /* * Recomputes the group entity based on the current state of its group * runqueue. -- 1.8.3.1