aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorVinay K Nallamothu <vinay.nallamothu@gsecone.com>2005-05-01 08:59:09 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-01 08:59:09 -0700
commitf78fc874f42f63a460bcebc2aeb98db526280d1c (patch)
treead78acf82f36bb14e8a9ae0980d350d6f5cf704e /drivers
parente49332bd12e92da2df6d002f857ec62675ba2648 (diff)
downloadkernel_samsung_crespo-f78fc874f42f63a460bcebc2aeb98db526280d1c.zip
kernel_samsung_crespo-f78fc874f42f63a460bcebc2aeb98db526280d1c.tar.gz
kernel_samsung_crespo-f78fc874f42f63a460bcebc2aeb98db526280d1c.tar.bz2
[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: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/gt96100eth.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/gt96100eth.h b/drivers/net/gt96100eth.h
index 2f4bfd4..395869c 100644
--- a/drivers/net/gt96100eth.h
+++ b/drivers/net/gt96100eth.h
@@ -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. */