diff options
author | Dave Jiang <dave.jiang@intel.com> | 2023-06-15 11:11:12 -0700 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-07-10 18:49:16 +0200 |
commit | 25eea70724b441f124f015163982a914bcb70b4f (patch) | |
tree | 720e391032e93afede10114e8b1faf0d0d7a783f | |
parent | 1e8d007a6adb6c64e9ee9c809d6f9c11d3ed0c70 (diff) | |
download | linux-stable-25eea70724b441f124f015163982a914bcb70b4f.tar.gz linux-stable-25eea70724b441f124f015163982a914bcb70b4f.tar.bz2 linux-stable-25eea70724b441f124f015163982a914bcb70b4f.zip |
ACPICA: Add a define for size of struct acpi_srat_generic_affinity device_handle
ACPICA commit be56820b03d8aeabfa6709c4d99bf1711afe7ef1
Replace magic number with a define. Linux kernel code will utilize this
define.
Link: https://github.com/acpica/acpica/commit/be56820b
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | include/acpi/actbl3.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/acpi/actbl3.h b/include/acpi/actbl3.h index 000764ab3985..c080d579a546 100644 --- a/include/acpi/actbl3.h +++ b/include/acpi/actbl3.h @@ -279,12 +279,14 @@ struct acpi_srat_gic_its_affinity { * 6: ACPI_SRAT_TYPE_GENERIC_PORT_AFFINITY */ +#define ACPI_SRAT_DEVICE_HANDLE_SIZE 16 + struct acpi_srat_generic_affinity { struct acpi_subtable_header header; u8 reserved; u8 device_handle_type; u32 proximity_domain; - u8 device_handle[16]; + u8 device_handle[ACPI_SRAT_DEVICE_HANDLE_SIZE]; u32 flags; u32 reserved1; }; |