]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
scsi: ipr: Replace 1-element arrays with flexible arrays
authorKees Cook <kees@kernel.org>
Thu, 11 Jul 2024 18:07:06 +0000 (11:07 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 3 Aug 2024 01:29:51 +0000 (21:29 -0400)
commitc72e13cf820bc79fffd5ffaaa0aaab11269027d1
tree161b6767683928f31e49cf01f045086f91aed4c5
parent2e35b43bc9a82fde4e7aebe5d8331e1158374d5c
scsi: ipr: Replace 1-element arrays with flexible arrays

Replace the deprecated[1] use of a 1-element arrays in struct
ipr_hostrcb_fabric_desc and struct ipr_hostrcb64_fabric_desc with modern
flexible arrays.

No binary differences are present after this conversion.

Link: https://github.com/KSPP/linux/issues/79
Signed-off-by: Kees Cook <kees@kernel.org>
Link: https://lore.kernel.org/r/20240711180702.work.536-kees@kernel.org
Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ipr.h