Gustavo A. R. Silva 6f0a92fd7d scsi: smartpqi: 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 a couple of structures, and refactor the rest of the code,
accordingly.

This helps with the ongoing efforts to tighten the FORTIFY_SOURCE routines
on memcpy().

This results in no differences in binary output.

Link: https://github.com/KSPP/linux/issues/79
Link: https://github.com/KSPP/linux/issues/204
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/ZJNdKDkuRbFZpASS@work
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2023-06-21 21:15:08 -04:00
..
2023-05-31 19:59:26 -04:00
2023-05-31 19:59:26 -04:00
2023-04-26 16:07:23 -07:00
2023-04-27 11:53:57 -07:00
2023-04-27 16:36:55 -07:00
2023-05-31 20:07:42 -04:00
2023-05-31 19:59:26 -04:00
2023-05-31 19:59:26 -04:00
2023-04-18 23:01:23 -04:00
2023-04-26 15:39:25 -07:00
2023-05-31 19:59:26 -04:00
2022-06-27 22:56:21 -04:00
2023-04-27 11:53:57 -07:00
2022-02-22 21:11:02 -05:00
2022-05-08 14:28:18 -04:00
2023-04-27 11:53:57 -07:00
2023-06-16 12:19:59 -04:00
2021-12-22 23:41:13 -05:00
2022-10-07 12:33:18 -07:00