提交 f78fc874 编写于 作者: V Vinay K Nallamothu 提交者: Linus Torvalds

[PATCH] __attribute__ placement fixes

The variable attributes "packed" and "align" when used with struct, should
have the following order:

struct ... {...} __attribute__((packed)) var;

This patch fixes few instances where the variable and attributes are placed
the other way around and had no effect.
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 e49332bd
......@@ -214,7 +214,7 @@ typedef struct {
u32 cmdstat;
u32 next;
u32 buff_ptr;
} gt96100_td_t __attribute__ ((packed));
} __attribute__ ((packed)) gt96100_td_t;
typedef struct {
#ifdef DESC_BE
......@@ -227,7 +227,7 @@ typedef struct {
u32 cmdstat;
u32 next;
u32 buff_ptr;
} gt96100_rd_t __attribute__ ((packed));
} __attribute__ ((packed)) gt96100_rd_t;
/* Values for the Tx command-status descriptor entry. */
......
......@@ -993,7 +993,7 @@ typedef volatile struct {
volatile unsigned short int pad1;
volatile unsigned short int pad2;
volatile unsigned short int pad3;
} m68328_uart __attribute__((packed));
} __attribute__((packed)) m68328_uart;
/**********
......
......@@ -815,7 +815,7 @@ typedef volatile struct {
volatile unsigned short int nipr;
volatile unsigned short int pad1;
volatile unsigned short int pad2;
} m68328_uart __attribute__((packed));
} __attribute__((packed)) m68328_uart;
/**********
......
......@@ -909,7 +909,7 @@ typedef struct {
volatile unsigned short int nipr;
volatile unsigned short int hmark;
volatile unsigned short int unused;
} m68328_uart __attribute__((packed));
} __attribute__((packed)) m68328_uart;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册