Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <viro@zeniv.linux.org.uk>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Al Viro and committed by
John W. Linville
ea995abf 0a74892b

+1 -1
+1 -1
drivers/net/wireless/wavelan_cs.h
··· 309 309 #define MMW_EXT_ANT_INTERNAL 0x00 /* Internal antenna */ 310 310 #define MMW_EXT_ANT_EXTERNAL 0x03 /* External antenna */ 311 311 #define MMW_EXT_ANT_IQ_TEST 0x1C /* IQ test pattern (set to 0) */ 312 - }; 312 + } __attribute__((packed)); 313 313 314 314 /* Size for structure checking (if padding is correct) */ 315 315 #define MMW_SIZE 37