From 8ae9ee9eb37ba62683de35b2b30ae47a134e1ead Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Fri, 11 Feb 2005 23:54:10 +0000 Subject: [PATCH] Remove unnecessary packed attribute. Verified-by: md5 --- sys/dev/raid/twe/twereg.h | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/sys/dev/raid/twe/twereg.h b/sys/dev/raid/twe/twereg.h index 15b3dae32f..c3934e6090 100644 --- a/sys/dev/raid/twe/twereg.h +++ b/sys/dev/raid/twe/twereg.h @@ -25,7 +25,7 @@ * SUCH DAMAGE. * * $FreeBSD: src/sys/dev/twe/twereg.h,v 1.1.2.4 2002/03/07 09:57:02 msmith Exp $ - * $DragonFly: src/sys/dev/raid/twe/twereg.h,v 1.4 2004/01/05 17:40:00 drhodus Exp $ + * $DragonFly: src/sys/dev/raid/twe/twereg.h,v 1.5 2005/02/11 23:54:10 joerg Exp $ */ /* @@ -162,7 +162,7 @@ typedef struct { u_int32_t address; u_int32_t length; -} TWE_SG_Entry __attribute__ ((packed)); +} TWE_SG_Entry; typedef struct { u_int8_t opcode:5; /* TWE_OP_INITCONNECTION */ @@ -175,7 +175,7 @@ typedef struct { u_int8_t flags; u_int16_t message_credits; u_int32_t response_queue_pointer; -} TWE_Command_INITCONNECTION __attribute__ ((packed)); +} TWE_Command_INITCONNECTION; typedef struct { @@ -190,7 +190,7 @@ typedef struct u_int16_t block_count; u_int32_t lba; TWE_SG_Entry sgl[TWE_MAX_SGL_LENGTH]; -} TWE_Command_IO __attribute__ ((packed)); +} TWE_Command_IO; typedef struct { @@ -207,7 +207,7 @@ typedef struct #define TWE_OP_HOTSWAP_ADD_CBOD 0x01 /* add CBOD to empty port */ #define TWE_OP_HOTSWAP_ADD_SPARE 0x02 /* add spare to empty port */ u_int8_t aport; -} TWE_Command_HOTSWAP __attribute__ ((packed)); +} TWE_Command_HOTSWAP; typedef struct { @@ -225,7 +225,7 @@ typedef struct u_int8_t feature_mode; u_int16_t all_units; u_int16_t persistence; -} TWE_Command_SETATAFEATURE __attribute__ ((packed)); +} TWE_Command_SETATAFEATURE; typedef struct { @@ -238,7 +238,7 @@ typedef struct u_int8_t status; u_int8_t flags; u_int16_t target_status; /* set low byte to target request's ID */ -} TWE_Command_CHECKSTATUS __attribute__ ((packed)); +} TWE_Command_CHECKSTATUS; typedef struct { @@ -252,7 +252,7 @@ typedef struct u_int8_t flags; u_int16_t param_count; TWE_SG_Entry sgl[TWE_MAX_SGL_LENGTH]; -} TWE_Command_PARAM __attribute__ ((packed)); +} TWE_Command_PARAM; typedef struct { @@ -271,7 +271,7 @@ typedef struct #define TWE_OP_REBUILDUNIT_STARTUNIT 5 /* rebuild src_unit (not supported) */ u_int8_t cs:1; /* request state change on src_unit */ u_int8_t logical_subunit; /* for RAID10 rebuild of logical subunit */ -} TWE_Command_REBUILDUNIT __attribute__ ((packed)); +} TWE_Command_REBUILDUNIT; typedef struct { @@ -291,7 +291,7 @@ typedef struct u_int8_t drive_head; u_int8_t command; TWE_SG_Entry sgl[TWE_MAX_ATA_SGL_LENGTH]; -} TWE_Command_ATA __attribute__ ((packed)); +} TWE_Command_ATA; typedef struct { @@ -309,7 +309,7 @@ typedef struct #define TWE_FLAGS_FATAL 0x03 #define TWE_FLAGS_PERCENTAGE (1<<8) /* bits 0-6 indicate completion percentage */ u_int16_t count; /* block count, parameter count, message credits */ -} TWE_Command_Generic __attribute__ ((packed)); +} TWE_Command_Generic; /* command packet - must be TWE_ALIGNMENT aligned */ typedef union @@ -453,7 +453,7 @@ typedef struct u_int8_t log_drv_num; /* must be zero for configuration == 0x0f */ u_int32_t start_lba; u_int32_t block_count; /* actual drive size if configuration == 0x0f, otherwise less DCB size */ -} TWE_Unit_Descriptor __attribute__ ((packed)); +} TWE_Unit_Descriptor; typedef struct { @@ -461,7 +461,7 @@ typedef struct u_int8_t res1; u_int8_t mirunit_status[4]; /* bitmap of functional subunits in each mirror */ u_int8_t res2[6]; -} TWE_Mirror_Descriptor __attribute__ ((packed)); +} TWE_Mirror_Descriptor; typedef struct { @@ -481,14 +481,14 @@ typedef struct u_int8_t log_drv_status; /* bitmap of functional subunits, or mirror units in RAID10 */ u_int32_t start_lba; u_int32_t block_count; /* actual drive size if configuration == 0x0f, otherwise less DCB size */ - TWE_Unit_Descriptor subunit[0]; /* subunit descriptors, in RAID10 mode is [mirunit][subunit] */ -} TWE_Array_Descriptor __attribute__ ((packed)); + TWE_Unit_Descriptor subunit[__ARRAY_ZERO]; /* subunit descriptors, in RAID10 mode is [mirunit][subunit] */ +} TWE_Array_Descriptor; typedef struct { u_int16_t table_id; u_int8_t parameter_id; u_int8_t parameter_size_bytes; - u_int8_t data[0]; -} TWE_Param __attribute__ ((packed)); + u_int8_t data[__ARRAY_ZERO]; +} TWE_Param; -- 2.41.0