wifi: mwifiex: Replace one-element arrays with flexible-array members
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 3 Feb 2023 01:32:00 +0000 (19:32 -0600)
committerKalle Valo <kvalo@kernel.org>
Mon, 13 Feb 2023 16:52:56 +0000 (18:52 +0200)
commit7fcae8f7f8158d22e667ed55a40e6a1829cc55b0
tree8fbeccd0ec1e6887cbcd1e26314e34b8f8e7a194
parent552ac55ee9bc8a30edc87c284a4562ce703f972b
wifi: mwifiex: Replace one-element arrays with flexible-array members

One-element arrays are deprecated, and we are replacing them with flexible
array members instead. So, replace one-element arrays with flexible-array
members in multiple structures.

This helps with the ongoing efforts to tighten the FORTIFY_SOURCE
routines on memcpy() and help us make progress towards globally
enabling -fstrict-flex-arrays=3 [1].

This results in no differences in binary output.

Link: https://github.com/KSPP/linux/issues/79
Link: https://github.com/KSPP/linux/issues/256
Link: https://gcc.gnu.org/pipermail/gcc-patches/2022-October/602902.html
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/Y9xkECG3uTZ6T1dN@work
drivers/net/wireless/marvell/mwifiex/fw.h