hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/IDC9YK -------------------------------- sched: Fix kabi for the method pointer reweight_task in struct sched_class. Fixes: 4931d2d71d15 ("sched: Add sched_class->reweight_task()") Signed-off-by: Zicheng Qu <quzicheng@huawei.com> --- kernel/sched/sched.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index f83fbe07c292..d005b3dd0952 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -2479,8 +2479,6 @@ struct sched_class { */ void (*switched_from)(struct rq *this_rq, struct task_struct *task); void (*switched_to) (struct rq *this_rq, struct task_struct *task); - void (*reweight_task)(struct rq *this_rq, struct task_struct *task, - const struct load_weight *lw); void (*prio_changed) (struct rq *this_rq, struct task_struct *task, int oldprio); @@ -2496,7 +2494,8 @@ struct sched_class { #if defined(CONFIG_SCHED_CORE) || defined(CONFIG_CGROUP_IFS) int (*task_is_throttled)(struct task_struct *p, int cpu); #endif - KABI_RESERVE(1) + KABI_USE(1, void (*reweight_task)(struct rq *this_rq, + struct task_struct *task, const struct load_weight *lw)) KABI_RESERVE(2) }; -- 2.34.1