OpenCloudOS-Kernel/drivers/net/wireless/ath/carl9170
Kees Cook 7256f28767 wifi: carl9170: Replace zero-length array of trailing structs with flex-array
Zero-length arrays are deprecated[1] and are being replaced with
flexible array members in support of the ongoing efforts to tighten the
FORTIFY_SOURCE routines on memcpy(), correctly instrument array indexing
with UBSAN_BOUNDS, and to globally enable -fstrict-flex-arrays=3.

Replace zero-length array with flexible-array member.

This results in no differences in binary output.

[1] https://github.com/KSPP/linux/issues/78

Cc: Christian Lamparter <chunkeey@googlemail.com>
Cc: Kalle Valo <kvalo@kernel.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Paolo Abeni <pabeni@redhat.com>
Cc: "Gustavo A. R. Silva" <gustavoars@kernel.org>
Cc: linux-wireless@vger.kernel.org
Cc: netdev@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Acked-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20221118211146.never.395-kees@kernel.org
2022-11-25 13:14:55 +02:00
..
Kconfig wireless: carl9170: fix LEDS build errors & warnings 2021-06-12 13:37:46 +03:00
Makefile wifi: carl9170: Remove -Warray-bounds exception 2022-10-12 09:36:38 +03:00
carl9170.h carl9170: devres-ing hwrng_register usage 2022-03-10 17:53:38 +02:00
cmd.c
cmd.h
debug.c carl9170: remove trailing semicolon in macro definition 2020-12-08 09:45:36 +02:00
debug.h
eeprom.h
fw.c wifi: move from strlcpy with unused retval to strscpy 2022-09-02 11:47:22 +03:00
fwcmd.h wifi: carl9170: Replace zero-length array of trailing structs with flex-array 2022-11-25 13:14:55 +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
led.c
mac.c carl9170: remove WDS code 2020-11-11 08:39:13 +01:00
main.c wifi: mac80211: add wake_tx_queue callback to drivers 2022-10-10 11:00:03 +02:00
phy.c
phy.h
rx.c carl9170: Use fallthrough pseudo-keyword 2020-08-27 13:20:26 +03:00
tx.c wifi: mac80211: return a beacon for a specific link 2022-06-20 12:57:08 +02:00
usb.c carl9170: convert tasklets to use new tasklet_setup() API 2020-08-27 13:21:34 +03:00
version.h
wlan.h carl9170: Replace zero-length array with DECLARE_FLEX_ARRAY() helper 2022-09-30 09:31:32 +03:00