From f0c4a06f1dfc4886d4e0c2aa30bc57b10c5a8c53 Mon Sep 17 00:00:00 2001 From: Jessica Clarke Date: Tue, 13 Sep 2022 19:29:39 +0100 Subject: Headers: Delete bogus NodeArray array of pointers from AEST table Like many tables, this is a header followed by multiple subtables of varying self-identifying types, and ACPICA does not normally add a field for the subtables, instead relying on pointer arithmetic past the end of the first header struct, since indexing a flexible array member is meaningless for variable-length entries. If we really wanted a field for this, we could use a UINT8 flexible array member, but it contradicts the current style. Using void *, however, is categorically wrong, as ACPI tables never contain native C-language pointers. --- source/include/actbl2.h | 1 - 1 file changed, 1 deletion(-) diff --git a/source/include/actbl2.h b/source/include/actbl2.h index 67de89db8..258fc89d8 100644 --- a/source/include/actbl2.h +++ b/source/include/actbl2.h @@ -229,7 +229,6 @@ typedef struct acpi_table_aest { ACPI_TABLE_HEADER Header; - void *NodeArray[]; } ACPI_TABLE_AEST; -- cgit v1.2.1