diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2009-07-15 11:07:45 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 12:01:47 -0700 |
commit | b211a955d4f48c855c5341e00d27b4b61b96c1f6 (patch) | |
tree | fe1bd590f8d4b7a0cdced28c67f3c7025fb10c17 /drivers | |
parent | 0ffa63b09bf99ce3ee879c7de1c687267a90d20b (diff) |
Staging: hv: remove STRUCT_PACKED and STRUCT_ALIGNED defines
Use the correct __attribute__((packed)) one if it's really needed.
Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/hv/RingBuffer.h | 2 | ||||
-rw-r--r-- | drivers/staging/hv/include/osd.h | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/hv/RingBuffer.h b/drivers/staging/hv/RingBuffer.h index c5ecf41a00e..ba2d8a9455e 100644 --- a/drivers/staging/hv/RingBuffer.h +++ b/drivers/staging/hv/RingBuffer.h @@ -43,7 +43,7 @@ typedef struct _RING_BUFFER { // volatile u32 InterruptMask; // Ring data starts here + RingDataStartOffset !!! DO NOT place any fields below this !!! u8 Buffer[0]; -} STRUCT_PACKED RING_BUFFER; +} __attribute__((packed)) RING_BUFFER; typedef struct _RING_BUFFER_INFO { RING_BUFFER* RingBuffer; diff --git a/drivers/staging/hv/include/osd.h b/drivers/staging/hv/include/osd.h index fa0ae8cc08c..5bb72bc71bb 100644 --- a/drivers/staging/hv/include/osd.h +++ b/drivers/staging/hv/include/osd.h @@ -30,9 +30,6 @@ // -#define STRUCT_PACKED __attribute__((__packed__)) -#define STRUCT_ALIGNED(x) __attribute__((__aligned__(x))) - #define UNUSED_VAR(v) v __attribute__((__unused__)) #define ALIGN_UP(value, align) ( ((value) & (align-1))? ( ((value) + (align-1)) & ~(align-1) ): (value) ) |