From 014a36c8506eaad94999946f0812cbd1852488cb Mon Sep 17 00:00:00 2001 From: Zheng Zengkai Date: Thu, 29 Sep 2022 21:55:23 +0800 Subject: [PATCH] sched/fair: Fix kabi broken in struct cfs_rq hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I5L6CQ CVE: NA --------------------------------------- In struct cfs_rq, the name of 'throttled_clock_pelt' and 'throttled_clock_pelt_time' changed causing kabi broken, use KABI_REPLACE to fix it. Signed-off-by: Zheng Zengkai Signed-off-by: Wang Hai Reviewed-by: Xie XiuQi Acked-by: Xie XiuQi --- kernel/sched/sched.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index d19ce0379179..f8127a43b6a0 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -625,8 +625,8 @@ struct cfs_rq { s64 runtime_remaining; u64 throttled_clock; - u64 throttled_clock_pelt; - u64 throttled_clock_pelt_time; + KABI_REPLACE(u64 throttled_clock_task, u64 throttled_clock_pelt) + KABI_REPLACE(u64 throttled_clock_task_time, u64 throttled_clock_pelt_time) int throttled; int throttle_count; struct list_head throttled_list; -- GitLab