1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
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
..
carl9170.h carl9170: devres-ing hwrng_register usage 2022-03-10 17:53:38 +02:00
cmd.c cfg80211: remove "channel" from survey names 2015-01-08 15:27:52 +01:00
cmd.h wireless: Remove unnecessary ; from while (0) macros 2012-04-11 16:23:56 -04:00
debug.c carl9170: remove trailing semicolon in macro definition 2020-12-08 09:45:36 +02:00
debug.h
eeprom.h
fw.c carl9170: remove P2P_GO support 2020-05-06 09:14:20 +03:00
fwcmd.h carl9170: fix struct alignment conflict 2021-02-09 09:24:20 +02:00
fwdesc.h carl9170: Replace zero-length arrays with flexible-array members 2022-02-24 11:03:42 +02:00
hw.h carl9170: Replace zero-length array with flexible-array 2020-05-12 10:31:49 +03:00
Kconfig wireless: carl9170: fix LEDS build errors & warnings 2021-06-12 13:37:46 +03:00
led.c mac80211: make LED trigger names const 2015-05-05 14:21:55 +02:00
mac.c carl9170: remove WDS code 2020-11-11 08:39:13 +01:00
main.c mac80211: prepare sta handling for MLO support 2022-04-11 16:42:03 +02:00
Makefile wifi: carl9170: silence a GCC 12 -Warray-bounds warning 2022-05-22 17:23:15 -07:00
phy.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
phy.h
rx.c carl9170: Use fallthrough pseudo-keyword 2020-08-27 13:20:26 +03:00
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 carl9170: convert tasklets to use new tasklet_setup() API 2020-08-27 13:21:34 +03:00
version.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
wlan.h carl9170: Replace zero-length arrays with flexible-array members 2022-02-24 11:03:42 +02:00