1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac
Jakub Kicinski 84f23fb192 wifi: brcmfmac: work around a GCC 12 -Warray-bounds warning
GCC 12 really doesn't like partial struct allocations:

drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:2202:32: warning: array subscript ‘struct brcmf_ext_join_params_le[0]’ is partly outside array bounds of ‘void[70]’ [-Warray-bounds]
 2202 |                 ext_join_params->scan_le.passive_time =
      |                                ^~

brcmfmac is trying to save 2 bytes at the end by either allocating
or not allocating a channel member. Let's keep @join_params_size
the "right" size but kmalloc() the full structure.

Acked-by: Kalle Valo <kvalo@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-05-22 17:23:06 -07:00
..
bcdc.c wireless: brcmfmac: Use netif_rx(). 2022-03-06 11:05:31 +00:00
bcdc.h Revert "brcmfmac: fix NULL pointer derefence during USB disconnect" 2019-07-24 14:51:21 +03:00
bcmsdh.c brcmfmac: Avoid keeping power to SDIO card unless WOWL is used 2022-04-06 15:11:01 +03:00
btcoex.c brcmfmac: btcoex: Update 'brcmf_btcoex_state' and demote others 2020-09-01 12:22:37 +03:00
btcoex.h brcmfmac: switch source files to using SPDX license identifier 2019-05-28 15:24:12 +03:00
bus.h brcmfmac: properly check for bus register errors 2021-05-13 18:58:42 +02:00
cfg80211.c wifi: brcmfmac: work around a GCC 12 -Warray-bounds warning 2022-05-22 17:23:06 -07:00
cfg80211.h brcmfmac: add support for CQM RSSI notifications 2021-02-09 09:57:02 +02:00
chip.c brcmfmac: Add BCM43454/6 support 2022-02-14 20:05:24 +02:00
chip.h brcmfmac: support chipsets with different core enumeration space 2021-08-21 18:49:05 +03:00
common.c brcmfmac: allow setting wlan MAC address using device tree 2022-05-11 08:27:14 +03:00
common.h brcmfmac: allow setting wlan MAC address using device tree 2022-05-11 08:27:14 +03:00
commonring.c brcm80211: remove redundant pointer 'address' 2020-04-14 18:04:55 +03:00
commonring.h brcmfmac: switch source files to using SPDX license identifier 2019-05-28 15:24:12 +03:00
core.c brcmfmac: allow setting wlan MAC address using device tree 2022-05-11 08:27:14 +03:00
core.h wireless: brcmfmac: Use netif_rx(). 2022-03-06 11:05:31 +00:00
debug.c brcmfmac: no need to check return value of debugfs_create functions 2020-05-04 12:50:13 +03:00
debug.h brcmfmac: Silence error messages about unsupported firmware features 2021-06-23 20:44:25 +03:00
dmi.c brcmfmac: Add DMI nvram filename quirk for Cyberbook T116 tablet 2021-10-05 08:31:41 +03:00
feature.c brcmfmac: Add BCM43454/6 support 2022-02-14 20:05:24 +02:00
feature.h brcmfmac: support 4-way handshake offloading for WPA/WPA2-PSK in AP mode 2020-09-16 08:56:04 +03:00
firmware.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-02-17 11:44:20 -08:00
firmware.h brcmfmac: Add clm_blob firmware files to modinfo 2021-06-15 13:38:17 +03:00
flowring.c brcmfmac: fix 802.1d priority to ac mapping for pcie dongles 2020-05-12 11:50:42 +03:00
flowring.h brcmfmac: switch source files to using SPDX license identifier 2019-05-28 15:24:12 +03:00
fweh.c brcmfmac: fweh: Add missing description for 'gfp' 2020-11-07 18:04:07 +02:00
fweh.h net: brcmfmac: Convey allocation mode as argument 2020-09-29 14:02:55 -07:00
fwil.c brcmfmac: fwil: Constify iovar name arguments 2022-02-01 14:27:07 +02:00
fwil.h brcmfmac: fwil: Constify iovar name arguments 2022-02-01 14:27:07 +02:00
fwil_types.h brcmfmac: Replace zero-length arrays with flexible-array members 2022-02-21 10:59:35 +02:00
fwsignal.c wireless: brcmfmac: Use netif_rx(). 2022-03-06 11:05:31 +00:00
fwsignal.h wireless: brcmfmac: Use netif_rx(). 2022-03-06 11:05:31 +00:00
Kconfig brcmfmac: use separate Kconfig file for brcmfmac 2019-05-28 15:24:13 +03:00
Makefile brcmfmac: add xtlv support to firmware interface layer 2021-08-21 18:49:04 +03:00
msgbuf.c wireless: brcmfmac: Use netif_rx(). 2022-03-06 11:05:31 +00:00
msgbuf.h brcmfmac: switch source files to using SPDX license identifier 2019-05-28 15:24:12 +03:00
of.c brcmfmac: allow setting wlan MAC address using device tree 2022-05-11 08:27:14 +03:00
of.h brcmfmac: switch source files to using SPDX license identifier 2019-05-28 15:24:12 +03:00
p2p.c brcmfmac: p2p: Fix spelling mistake "Comback" -> "Comeback" 2022-03-17 16:16:36 +02:00
p2p.h brcmfmac: support the second p2p connection 2020-05-06 11:39:17 +03:00
pcie.c brcmfmac: pcie: Read the console on init and shutdown 2022-02-01 14:27:08 +02:00
pcie.h brcmfmac: properly check for bus register errors 2021-05-13 18:58:42 +02:00
pno.c brcmfmac: don't WARN when there are no requests 2019-10-01 12:14:20 +03:00
pno.h brcmfmac: switch source files to using SPDX license identifier 2019-05-28 15:24:12 +03:00
proto.c Revert "brcmfmac: fix NULL pointer derefence during USB disconnect" 2019-07-24 14:51:21 +03:00
proto.h wireless: brcmfmac: Use netif_rx(). 2022-03-06 11:05:31 +00:00
sdio.c Networking fixes for 5.18-rc3, including fixes from wireless and 2022-04-14 11:58:19 -07:00
sdio.h net: brcmfmac: Replace in_interrupt() 2020-09-29 14:02:55 -07:00
tracepoint.c brcmfmac: switch source files to using SPDX license identifier 2019-05-28 15:24:12 +03:00
tracepoint.h brcmfmac: switch source files to using SPDX license identifier 2019-05-28 15:24:12 +03:00
usb.c brcmfmac: properly check for bus register errors 2021-05-13 18:58:42 +02:00
usb.h brcmfmac: A typo fix 2021-04-18 09:28:21 +03:00
vendor.c wireless: fix nl80211 vendor commands 2019-07-20 21:37:26 +02:00
vendor.h brcmfmac: switch source files to using SPDX license identifier 2019-05-28 15:24:12 +03:00
xtlv.c include/linux/unaligned: replace kernel.h with the necessary inclusions 2022-01-20 08:52:53 +02:00
xtlv.h brcmfmac: Replace zero-length arrays with flexible-array members 2022-02-21 10:59:35 +02:00