From: Al Viro Date: Sun, 16 Mar 2008 22:43:06 +0000 (+0000) Subject: wavelan_cs arm fix X-Git-Tag: MMI-PSA29.97-13-9~35766^2~36^2~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ea995abfed7f0726aaa22580aaf10b2cf5d91be5;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.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 fabc63ee153c..2e4bfe4147c6 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