Staging: hv: remove STRUCT_PACKED and STRUCT_ALIGNED defines
authorGreg Kroah-Hartman <gregkh@suse.de>
Wed, 15 Jul 2009 18:07:45 +0000 (11:07 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 19:01:47 +0000 (12:01 -0700)
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>
drivers/staging/hv/RingBuffer.h
drivers/staging/hv/include/osd.h

index c5ecf41a00e698754ca81275b5486b7400d717bf..ba2d8a9455e0ca0a9f3e60366909f7fa6fb67b7d 100644 (file)
@@ -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;
index fa0ae8cc08c964c3c3c549359d71929fd093938c..5bb72bc71bb61c149d592308d65c47402fcaca08 100644 (file)
@@ -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) )