dm: fix compilation issue with gcc10

Fix compilation issue when using gcc 10.x due to the "__packed"
attribute in acpi.h. Explicitly changing that to __attribute__((packed))
fixes the compilation error.

Tracked-On: #5671
Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
This commit is contained in:
Geoffroy Van Cutsem 2021-01-29 09:57:54 +01:00 committed by wenlingz
parent 5437c2e47a
commit fb78029f0a

View File

@ -58,7 +58,7 @@ struct acpi_table_hdr {
char asl_compiler_id[4];
/* ASL compiler version */
uint32_t asl_compiler_revision;
} __packed;
} __attribute__((packed));
/* All dynamic table entry no. */
#define NHLT_ENTRY_NO 8