linux/drivers/net/wireless
Arnd Bergmann ae72bd1a4b wifi: b43: fix incorrect __packed annotation
[ Upstream commit 212457ccbd ]

clang warns about an unpacked structure inside of a packed one:

drivers/net/wireless/broadcom/b43/b43.h:654:4: error: field data within 'struct b43_iv' is less aligned than 'union (unnamed union at /home/arnd/arm-soc/drivers/net/wireless/broadcom/b43/b43.h:651:2)' and is usually due to 'struct b43_iv' being packed, which can lead to unaligned accesses [-Werror,-Wunaligned-access]

The problem here is that the anonymous union has the default alignment
from its members, apparently because the original author mixed up the
placement of the __packed attribute by placing it next to the struct
member rather than the union definition. As the struct itself is
also marked as __packed, there is no need to mark its members, so just
move the annotation to the inner type instead.

As Michael noted, the same problem is present in b43legacy, so
change both at the same time.

Acked-by: Michael Büsch <m@bues.ch>
Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Tested-by: Larry Finger <Larry.Finger@lwfinger.net>
Link: https://lore.kernel.org/oe-kbuild-all/202305160749.ay1HAoyP-lkp@intel.com/
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230516183442.536589-1-arnd@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-06-09 10:34:15 +02:00
..
admtek
ath wifi: ath11k: Fix SKB corruption in REO destination ring 2023-05-24 17:32:39 +01:00
atmel
broadcom wifi: b43: fix incorrect __packed annotation 2023-06-09 10:34:15 +02:00
cisco
intel wifi: iwlwifi: mvm: Add locking to the rate read flow 2023-06-09 10:34:15 +02:00
intersil
marvell wifi: mwifiex: mark OF related data as maybe unused 2023-04-20 12:35:10 +02:00
mediatek wifi: mt76: connac: fix stats->tx_bytes calculation 2023-05-24 17:32:44 +01:00
microchip
purelifi
quantenna
ralink wifi: rt2x00: Fix memory leak when handling surveys 2023-05-11 23:03:20 +09:00
realtek wifi: rtl8xxxu: fix authentication timeout due to incorrect RCR value 2023-06-09 10:34:14 +02:00
rsi
silabs
st
ti
zydas
Kconfig
mac80211_hwsim.c
mac80211_hwsim.h
Makefile
ray_cs.c
ray_cs.h
rayctl.h
rndis_wlan.c
virt_wifi.c
wl3501_cs.c
wl3501.h