diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2008-04-01 14:07:10 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-04-17 13:45:02 -0700 |
commit | 478d5ec9ae3cbcc6040241d2d73dbbc61fe9b49d (patch) | |
tree | ecd262073257313651de0b55b93f001aaba8024c /drivers | |
parent | c08fb3ea36d19b1640b7906264581e9105534399 (diff) | |
download | u-boot-imx-478d5ec9ae3cbcc6040241d2d73dbbc61fe9b49d.zip u-boot-imx-478d5ec9ae3cbcc6040241d2d73dbbc61fe9b49d.tar.gz u-boot-imx-478d5ec9ae3cbcc6040241d2d73dbbc61fe9b49d.tar.bz2 |
s3c4510b_eth: fix 'packed' attribute ignored for fields of MACFrame
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/s3c4510b_eth.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/s3c4510b_eth.h b/drivers/net/s3c4510b_eth.h index cbddba7..048307f 100644 --- a/drivers/net/s3c4510b_eth.h +++ b/drivers/net/s3c4510b_eth.h @@ -30,8 +30,6 @@ * */ -#define __packed __attribute__ ((packed)) - #define ETH_MAC_ADDR_SIZE (6) /* dst,src addr is 6bytes each */ #define ETH_MaxTxFrames (16) /* Max number of Tx Frames */ @@ -283,12 +281,14 @@ typedef struct __RX_FrameDescriptor { } RX_FrameDescriptor; /* MAC Frame Structure */ -typedef struct __MACFrame { - u8 m_dstAddr[6] __packed; - u8 m_srcAddr[6] __packed; - u16 m_lengthOrType __packed; - u8 m_payload[1506] __packed; -} MACFrame; +struct __MACFrame { + u8 m_dstAddr[6]; + u8 m_srcAddr[6]; + u16 m_lengthOrType; + u8 m_payload[1506]; +} __attribute__ ((packed)); + +typedef struct __MACFrame MACFrame; /* Ethernet Control block */ typedef struct __ETH { |