diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2023-05-16 19:18:01 -0600 |
---|---|---|
committer | Gustavo A. R. Silva <gustavoars@kernel.org> | 2023-06-11 09:51:08 -0600 |
commit | 1fa89cccd288cea4370ce08042b749b72ea8b059 (patch) | |
tree | d3685ec0de84c9a1d871f00c85d95bd604abd3a0 /include/linux/init.h | |
parent | 40ca06d71d60677a8424798610c97a46e4140a21 (diff) |
media: venus: hfi_cmds: Replace fake flex-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/294
Link: https://gcc.gnu.org/pipermail/gcc-patches/2022-October/602902.html [1]
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Diffstat (limited to 'include/linux/init.h')
0 files changed, 0 insertions, 0 deletions