From add448e4e7ca9730b5eea4ba3c749a35a056349f Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Wed, 9 Oct 2002 19:46:09 +0000 Subject: [PATCH] Use __packed. --- usr.sbin/acpi/acpidump/acpidump.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/usr.sbin/acpi/acpidump/acpidump.h b/usr.sbin/acpi/acpidump/acpidump.h index dd27f89ca74f..796246ec3530 100644 --- a/usr.sbin/acpi/acpidump/acpidump.h +++ b/usr.sbin/acpi/acpidump/acpidump.h @@ -44,7 +44,7 @@ struct ACPIgas { u_int8_t register_bit_offset; u_int8_t res; u_int64_t address; -} __attribute__((packed)); +} __packed; /* Root System Description Pointer */ struct ACPIrsdp { @@ -53,7 +53,7 @@ struct ACPIrsdp { u_char oem[6]; u_char res; u_int32_t addr; -} __attribute__((packed)); +} __packed; /* System Description Table */ struct ACPIsdt { @@ -68,7 +68,7 @@ struct ACPIsdt { u_int32_t crerev; #define SIZEOF_SDT_HDR 36 /* struct size except body */ u_int32_t body[1];/* This member should be casted */ -} __attribute__((packed)); +} __packed; /* Fixed ACPI Description Table (body) */ struct FACPbody { @@ -135,7 +135,7 @@ struct FACPbody { struct ACPIgas x_pm_tmr_blk; struct ACPIgas x_gpe0_blk; struct ACPIgas x_gpe1_blk; -} __attribute__((packed)); +} __packed; /* Firmware ACPI Control Structure */ struct FACS { @@ -154,7 +154,7 @@ struct FACS { u_int32_t flags; /* bit field */ #define ACPI_FACS_FLAG_S4BIOS_F 1 /* Supports S4BIOS_SEQ */ char reserved[40]; -} __attribute__((packed)); +} __packed; void *acpi_map_physical(vm_offset_t, size_t); struct ACPIrsdp *acpi_find_rsd_ptr(void);