
hulk inclusion category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IB2STY -------------------------------- fix kabi breakage by adding KABI_EXTEND_ENUM macro. Fixes: bee1a0cf30b6 ("sched/core: Disable page allocation in task_tick_mm_cid()") Signed-off-by: Liu Kai <liukai284@huawei.com> --- include/linux/task_work.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/linux/task_work.h b/include/linux/task_work.h index 2964171856e00..c3bdcf3c42ffd 100644 --- a/include/linux/task_work.h +++ b/include/linux/task_work.h @@ -4,6 +4,7 @@ #include <linux/list.h> #include <linux/sched.h> +#include <linux/kabi.h> typedef void (*task_work_func_t)(struct callback_head *); @@ -18,10 +19,10 @@ enum task_work_notify_mode { TWA_RESUME, TWA_SIGNAL, TWA_SIGNAL_NO_IPI, - TWA_NMI_CURRENT, + KABI_EXTEND_ENUM(TWA_NMI_CURRENT) - TWA_FLAGS = 0xff00, - TWAF_NO_ALLOC = 0x0100, + KABI_EXTEND_ENUM(TWA_FLAGS = 0xff00) + KABI_EXTEND_ENUM(TWAF_NO_ALLOC = 0x0100) }; static inline bool task_work_pending(struct task_struct *task) -- 2.34.1