mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-14 14:36:00 +00:00
carl9170 has a big union (struct carl9170_cmd) with all the command
types in it. But it allocates buffers only large enough for a given
command. This upsets GCC 12:
drivers/net/wireless/ath/carl9170/cmd.c:125:30: warning: array subscript ‘struct carl9170_cmd[0]’ is partly outside array bounds of ‘unsigned char[8]’ [-Warray-bounds]
125 | tmp->hdr.cmd = cmd;
| ~~~~~~~~~~~~~^~~~~
Punt the warning to W=1 for now. Hopefully GCC will learn to
recognize which fields are in-bounds.
Acked-by: Christian Lamparter <chunkeey@gmail.com>
Acked-by: Kalle Valo <kvalo@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
|
||
|---|---|---|
| .. | ||
| carl9170.h | ||
| cmd.c | ||
| cmd.h | ||
| debug.c | ||
| debug.h | ||
| eeprom.h | ||
| fw.c | ||
| fwcmd.h | ||
| fwdesc.h | ||
| hw.h | ||
| Kconfig | ||
| led.c | ||
| mac.c | ||
| main.c | ||
| Makefile | ||
| phy.c | ||
| phy.h | ||
| rx.c | ||
| tx.c | ||
| usb.c | ||
| version.h | ||
| wlan.h | ||