linux/drivers/net/wireless/ath/carl9170
Jakub Kicinski 1318252617 wifi: carl9170: silence a GCC 12 -Warray-bounds warning
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>
2022-05-22 17:23:15 -07:00
..
Kconfig
Makefile wifi: carl9170: silence a GCC 12 -Warray-bounds warning 2022-05-22 17:23:15 -07:00
carl9170.h carl9170: devres-ing hwrng_register usage 2022-03-10 17:53:38 +02:00
cmd.c
cmd.h
debug.c
debug.h
eeprom.h
fw.c
fwcmd.h
fwdesc.h carl9170: Replace zero-length arrays with flexible-array members 2022-02-24 11:03:42 +02:00
hw.h
led.c
mac.c
main.c mac80211: prepare sta handling for MLO support 2022-04-11 16:42:03 +02:00
phy.c
phy.h
rx.c
tx.c Merge ath-next from git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git 2022-05-03 08:38:03 +03:00
usb.c
version.h
wlan.h carl9170: Replace zero-length arrays with flexible-array members 2022-02-24 11:03:42 +02:00