s3c4510b_eth: fix 'packed' attribute ignored for fields of MACFrame
PATCH 1/1 s3c4510b_eth: fix 'packed' attribute ignored for fields of MACFrame
Signed-off-by Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
drivers/net/s3c4510b_eth.h +8 -8
@@ -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 {
Signature · 1 line
1.5.4.5
Wolfgang Denk
AppliedPATCH 1/1 s3c4510b_eth: fix 'packed' attribute ignored for fields of MACFrame
drivers/net/s3c4510b_eth.h
Quoted 6 lines · In message <[email protected]> you wrote:
Signed-off-by Jean-Christophe PLAGNIOL-VILLARD <[email protected]>drivers/net/s3c4510b_eth.h +0
-0
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Vulcans worship peace above all. -- McCoy, "Return to Tomorrow", stardate 4768.3