qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 3/7] acpi: Fix packing for w32


From: Stefan Weil
Subject: [Qemu-devel] [PATCH 3/7] acpi: Fix packing for w32
Date: Sun, 28 Aug 2011 22:43:16 +0200

Use QEMU_PACKED to eliminate the effects of compiler option
-mms-bitfields.

Cc: Isaku Yamahata <address@hidden>
Signed-off-by: Stefan Weil <address@hidden>
---
 hw/acpi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/hw/acpi.c b/hw/acpi.c
index d04b965..1cf35e1 100644
--- a/hw/acpi.c
+++ b/hw/acpi.c
@@ -32,7 +32,7 @@ struct acpi_table_header {
     uint32_t oem_revision;    /* OEM revision number */
     char asl_compiler_id[4];  /* ASL compiler vendor ID */
     uint32_t asl_compiler_revision; /* ASL compiler revision number */
-} __attribute__((packed));
+} QEMU_PACKED;
 
 #define ACPI_TABLE_HDR_SIZE sizeof(struct acpi_table_header)
 #define ACPI_TABLE_PFX_SIZE sizeof(uint16_t)  /* size of the extra prefix */
-- 
1.7.0.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]