diff options
| author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2023-02-02 19:32:00 -0600 |
|---|---|---|
| committer | Kalle Valo <kvalo@kernel.org> | 2023-02-13 18:52:56 +0200 |
| commit | 7fcae8f7f8158d22e667ed55a40e6a1829cc55b0 (patch) | |
| tree | 8fbeccd0ec1e6887cbcd1e26314e34b8f8e7a194 /net/lapb/lapb_timer.c | |
| parent | 552ac55ee9bc8a30edc87c284a4562ce703f972b (diff) | |
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 [1]
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
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions
