mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-04 15:40:44 +00:00
acpica: Fix build with ACPICA 20230331 and later
ACPICA is using flexible arrays since 20230331 and it broke aarch64 build. --- acpi_iort.o --- /usr/src/sys/arm64/acpica/acpi_iort.c:103:4: error: field 'data' with variable sized type 'union (unnamed union at /usr/src/sys/arm64/acpica/acpi_iort.c:98:2)' not at the end of a struct or class is a GNU extension [-Werror,-Wgnu-variable-sized-type-not-at-end] 103 | } data; | ^ Reported by: bapt Tested by: bapt
This commit is contained in:
parent
712fd5ac91
commit
81bee6d793
|
@ -95,16 +95,16 @@ struct iort_node {
|
|||
u_int nentries; /* items in array below */
|
||||
u_int usecount; /* for bookkeeping */
|
||||
u_int revision; /* node revision */
|
||||
union {
|
||||
struct iort_map_entry *mappings; /* node mappings */
|
||||
struct iort_its_entry *its; /* ITS IDs array */
|
||||
} entries;
|
||||
union {
|
||||
ACPI_IORT_ROOT_COMPLEX pci_rc; /* PCI root complex */
|
||||
ACPI_IORT_SMMU smmu;
|
||||
ACPI_IORT_SMMU_V3 smmu_v3;
|
||||
struct iort_named_component named_comp;
|
||||
} data;
|
||||
union {
|
||||
struct iort_map_entry *mappings; /* node mappings */
|
||||
struct iort_its_entry *its; /* ITS IDs array */
|
||||
} entries;
|
||||
};
|
||||
|
||||
/* Lists for each of the types. */
|
||||
|
|
Loading…
Reference in a new issue