Unverified Commit 7a3bd185 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!4408 v2 kabi: reserve space for struct acpi_device and acpi_scan_handler

parents 5fb5d63e 8751df9f
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@

#include <linux/device.h>
#include <linux/property.h>
#include <linux/kabi.h>

/* TBD: Make dynamic */
#define ACPI_MAX_HANDLES	10
@@ -130,6 +131,8 @@ struct acpi_scan_handler {
	void (*bind)(struct device *phys_dev);
	void (*unbind)(struct device *phys_dev);
	struct acpi_hotplug_profile hotplug;
	KABI_RESERVE(1)
	KABI_RESERVE(2)
};

/*
@@ -282,6 +285,8 @@ struct acpi_device_power {
	struct acpi_device_power_flags flags;
	struct acpi_device_power_state states[ACPI_D_STATE_COUNT];	/* Power states (D0-D3Cold) */
	u8 state_for_enumeration; /* Deepest power state for enumeration */
	KABI_RESERVE(1)
	KABI_RESERVE(2)
};

struct acpi_dep_data {
@@ -389,6 +394,8 @@ struct acpi_device {
	struct list_head physical_node_list;
	struct mutex physical_node_lock;
	void (*remove)(struct acpi_device *);
	KABI_RESERVE(1)
	KABI_RESERVE(2)
};

/* Non-device subnode */