Home
last modified time | relevance | path

Searched hist:c5b483d5c1a26b6006180f5dc7b2f8674f19afa3 (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/scsi/libfc/
H A Dfc_encode.hdiff c5b483d5c1a26b6006180f5dc7b2f8674f19afa3 Mon Feb 14 16:39:03 CST 2022 Gustavo A. R. Silva <gustavoars@kernel.org> 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>
/openbmc/linux/include/scsi/fc/
H A Dfc_ms.hdiff c5b483d5c1a26b6006180f5dc7b2f8674f19afa3 Mon Feb 14 16:39:03 CST 2022 Gustavo A. R. Silva <gustavoars@kernel.org> 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>