summaryrefslogtreecommitdiff
path: root/init/Makefile
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2021-02-04 19:29:17 +0300
committerKalle Valo <kvalo@codeaurora.org>2021-02-09 10:24:20 +0300
commitca9ad549e4042089d55a68f0312647fca4cc6e87 (patch)
tree2e185df3ecdc9c42719e810689145adcba392e28 /init/Makefile
parent84da2a84027c2bb88662dbfad8ebddc357c5c5ae (diff)
downloadlinux-ca9ad549e4042089d55a68f0312647fca4cc6e87.tar.xz
carl9170: fix struct alignment conflict
Multiple structures in the carl9170 driver have alignment impossible alignment constraints that gcc warns about when building with 'make W=1': drivers/net/wireless/ath/carl9170/fwcmd.h:243:2: warning: alignment 1 of 'union <anonymous>' is less than 4 [-Wpacked-not-aligned] drivers/net/wireless/ath/carl9170/wlan.h:373:1: warning: alignment 1 of 'struct ar9170_rx_frame_single' is less than 2 [-Wpacked-not-aligned] In the carl9170_cmd structure, multiple members that have an explicit alignment requirement of four bytes are added into a union with explicit byte alignment, but this in turn is part of a structure that also has four-byte alignment. In the wlan.h header, multiple structures contain a ieee80211_hdr member that is required to be two-byte aligned to avoid alignmnet faults when processing network headers, but all members are forced to be byte-aligned using the __packed tag at the end of the struct definition. In both cases, leaving out the packing does not change the internal layout of the structure but changes the alignment constraint of the structure itself. Change all affected structures to only apply packing where it does not violate the alignment requirement of the contained structure. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Christian Lamparter <chunkeey@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20210204162926.3262598-1-arnd@kernel.org
Diffstat (limited to 'init/Makefile')
0 files changed, 0 insertions, 0 deletions