Commit 046758dd authored by Jason Zeng's avatar Jason Zeng
Browse files

kabi: bus_type, device_driver, dev_pm_ops reservation

Intel inclusion
category: feature
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I9193N


CVE: NA

--------------------------------

Some base device layer data structures have impact on iommu kabi. Do
some kabi reservation for bus_type, device_driver and dev_pm_ops.

Signed-off-by: default avatarJason Zeng <jason.zeng@intel.com>
parent ed739b8f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -102,6 +102,11 @@ struct bus_type {
	const struct dev_pm_ops *pm;

	bool need_parent_lock;

	KABI_RESERVE(1)
	KABI_RESERVE(2)
	KABI_RESERVE(3)
	KABI_RESERVE(4)
};

int __must_check bus_register(const struct bus_type *bus);
+5 −0
Original line number Diff line number Diff line
@@ -119,6 +119,11 @@ struct device_driver {
	void (*coredump) (struct device *dev);

	struct driver_private *p;

	KABI_RESERVE(1)
	KABI_RESERVE(2)
	KABI_RESERVE(3)
	KABI_RESERVE(4)
};


+5 −0
Original line number Diff line number Diff line
@@ -308,6 +308,11 @@ struct dev_pm_ops {
	int (*runtime_suspend)(struct device *dev);
	int (*runtime_resume)(struct device *dev);
	int (*runtime_idle)(struct device *dev);

	KABI_RESERVE(1)
	KABI_RESERVE(2)
	KABI_RESERVE(3)
	KABI_RESERVE(4)
};

#define SYSTEM_SLEEP_PM_OPS(suspend_fn, resume_fn) \