diff options
author | Gustavo A. R. Silva <[email protected]> | 2022-11-15 09:35:10 -0600 |
---|---|---|
committer | Steve French <[email protected]> | 2022-12-11 08:33:31 -0600 |
commit | 30429388531b120902126a39cf64f877fc5c7773 (patch) | |
tree | 165b3ef017c81f92957bfe3984f28accbb26409f /lib/mpi/mpi-sub-ui.c | |
parent | 7ecbe92696bb7fe32c80b6cf64736a0d157717a9 (diff) |
ksmbd: 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 structs in fs/ksmbd/smb_common.h and one in
fs/ksmbd/smb2pdu.h.
Important to mention is that doing a build before/after this patch results
in no binary output differences.
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].
Link: https://github.com/KSPP/linux/issues/242
Link: https://github.com/KSPP/linux/issues/79
Link: https://gcc.gnu.org/pipermail/gcc-patches/2022-October/602902.html [1]
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Reviewed-by: Sergey Senozhatsky <[email protected]>
Acked-by: Namjae Jeon <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions