From: Al Viro Date: Sun, 16 Mar 2008 22:43:06 +0000 (+0000) Subject: wavelan_cs arm fix X-Git-Tag: v3.12-rc1~22171^2~36^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ea995abfed7f0726aaa22580aaf10b2cf5d91be5;p=kernel%2Fkernel-generic.git wavelan_cs arm fix Even when all fields are unsigned char, struct still might have alignment > 1. Does so on arm, unless you explicitly say that it's packed... Signed-off-by: Al Viro Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/wavelan_cs.h b/drivers/net/wireless/wavelan_cs.h index fabc63e..2e4bfe4 100644 --- a/drivers/net/wireless/wavelan_cs.h +++ b/drivers/net/wireless/wavelan_cs.h @@ -309,7 +309,7 @@ struct mmw_t #define MMW_EXT_ANT_INTERNAL 0x00 /* Internal antenna */ #define MMW_EXT_ANT_EXTERNAL 0x03 /* External antenna */ #define MMW_EXT_ANT_IQ_TEST 0x1C /* IQ test pattern (set to 0) */ -}; +} __attribute__((packed)); /* Size for structure checking (if padding is correct) */ #define MMW_SIZE 37