From: Yang Yingliang yangyingliang@huawei.com
hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I4JBL0 CVE: NA
-------------------------------
Reserve space for struct cpu_stop_work. Changing this struct will affect set_cpus_allowed_ptr(), so reserve one kabi field.
Signed-off-by: Yang Yingliang yangyingliang@huawei.com Reviewed-by: Cheng Jian cj.chengjian@huawei.com Signed-off-by: Zheng Zengkai zhengzengkai@huawei.com --- include/linux/stop_machine.h | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/include/linux/stop_machine.h b/include/linux/stop_machine.h index 63ea9aff368f..08ec8e2fd9b2 100644 --- a/include/linux/stop_machine.h +++ b/include/linux/stop_machine.h @@ -6,6 +6,7 @@ #include <linux/cpumask.h> #include <linux/smp.h> #include <linux/list.h> +#include <linux/kabi.h>
/* * stop_cpu[s]() is simplistic per-cpu maximum priority cpu @@ -26,6 +27,7 @@ struct cpu_stop_work { cpu_stop_fn_t fn; void *arg; struct cpu_stop_done *done; + KABI_RESERVE(1) };
int stop_one_cpu(unsigned int cpu, cpu_stop_fn_t fn, void *arg);