From fb78029f0a576965a7bd4f421b92fe81e4f5f660 Mon Sep 17 00:00:00 2001 From: Geoffroy Van Cutsem Date: Fri, 29 Jan 2021 09:57:54 +0100 Subject: [PATCH] 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 --- devicemodel/include/acpi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devicemodel/include/acpi.h b/devicemodel/include/acpi.h index e01744b4c..1a0706c79 100644 --- a/devicemodel/include/acpi.h +++ b/devicemodel/include/acpi.h @@ -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