diff mbox series

[v4,2/6] ACPICA: Add a define for size of acpi_srat_generic_affinity DeviceHandle

Message ID 168746997931.4115467.47140094903948157.stgit@djiang5-mobl3
State Accepted
Commit 25eea70724b441f124f015163982a914bcb70b4f
Headers show
Series acpi: numa: add target support for generic port to HMAT parsing | expand

Commit Message

Dave Jiang June 22, 2023, 9:39 p.m. UTC
ACPICA commit be56820b03d8aeabfa6709c4d99bf1711afe7ef1

Replace magic number with a define. Linux kernel code will utilize this
define.

Link: https://github.com/acpica/acpica/commit/be56820b
Link: https://github.com/acpica/acpica/pull/876
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
---
 include/acpi/actbl3.h |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Comments

Ira Weiny Aug. 8, 2023, 4:19 p.m. UTC | #1
Dave Jiang wrote:
> ACPICA commit be56820b03d8aeabfa6709c4d99bf1711afe7ef1
> 
> Replace magic number with a define. Linux kernel code will utilize this
> define.
> 
> Link: https://github.com/acpica/acpica/commit/be56820b
> Link: https://github.com/acpica/acpica/pull/876
> Signed-off-by: Dave Jiang <dave.jiang@intel.com>

Reviewed-by: Ira Weiny <ira.weiny@intel.com>

> ---
>  include/acpi/actbl3.h |    4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/include/acpi/actbl3.h b/include/acpi/actbl3.h
> index f51c46f4e3e4..1838e5cb313a 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;
>  };
> 
>
diff mbox series

Patch

diff --git a/include/acpi/actbl3.h b/include/acpi/actbl3.h
index f51c46f4e3e4..1838e5cb313a 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;
 };