Gustavo A. R. Silva c5b483d5c1 scsi: libfc: Replace one-element arrays with flexible-array members
Use flexible-array members in struct fc_fdmi_attr_entry and fs_fdmi_attrs
instead of one-element arrays, and refactor the code accordingly.

Also, this helps with the ongoing efforts to globally enable -Warray-bounds
and get us closer to being able to tighten the FORTIFY_SOURCE routines on
memcpy().

https://github.com/KSPP/linux/issues/79
https://github.com/ClangBuiltLinux/linux/issues/1590

Link: https://lore.kernel.org/r/20220214223903.GA859464@embeddedor
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2022-02-27 21:17:37 -05:00
..
2022-01-12 11:27:57 -08:00
2022-01-23 06:20:44 +02:00
2022-01-16 16:15:14 +02:00
2022-01-10 19:06:09 -08:00
2022-01-10 14:33:42 +01:00
2022-01-22 10:59:32 +02:00
2022-01-12 16:42:00 -08:00