hulk inclusion bugzilla: https://gitee.com/openeuler/kernel/issues/I8PS7G CVE: NA
---------------------------------------------
Add kabi_reserve in pm.h
Signed-off-by: Lin Yujun linyujun809@huawei.com --- include/linux/pm.h | 11 +++++++++++ 1 file changed, 11 insertions(+)
diff --git a/include/linux/pm.h b/include/linux/pm.h index 629c1633bbd0..f80ebfcdee08 100644 --- a/include/linux/pm.h +++ b/include/linux/pm.h @@ -16,6 +16,7 @@ #include <linux/timer.h> #include <linux/hrtimer.h> #include <linux/completion.h> +#include <linux/kabi.h>
/* * Callbacks for platform drivers to implement. @@ -600,6 +601,10 @@ enum rpm_status { RPM_RESUMING, RPM_SUSPENDED, RPM_SUSPENDING, + RPM_KABI_RESERVE_1, + RPM_KABI_RESERVE_2, + RPM_KABI_RESERVE_3, + RPM_KABI_RESERVE_4, };
/* @@ -640,6 +645,9 @@ struct pm_subsys_data { #ifdef CONFIG_PM_GENERIC_DOMAINS struct pm_domain_data *domain_data; #endif + + KABI_RESERVE(1) + KABI_RESERVE(2) };
/* @@ -720,6 +728,9 @@ struct dev_pm_info { struct pm_subsys_data *subsys_data; /* Owned by the subsystem. */ void (*set_latency_tolerance)(struct device *, s32); struct dev_pm_qos *qos; + + KABI_RESERVE(1) + KABI_RESERVE(2) };
extern int dev_pm_get_subsys_data(struct device *dev);