scsi: Replace zero-length array with flexible array member
PATCH v2 1/1 scsi: Replace zero-length array with flexible array member
Replace the deprecated zero-length array with a modern flexible array member in the struct iscsi_bsg_host_vendor_reply.
Signed-off-by Thorsten Blum <[email protected]>
---
Changes in v2:
- Use DECLARE_FLEX_ARRAY() as suggested by Gustavo A. R. Silva
- Link to v1: https://lore.kernel.org/r/[email protected]/
--- include/scsi/scsi_bsg_iscsi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/scsi/scsi_bsg_iscsi.h +1 -1
@@ -59,7 +59,7 @@ struct iscsi_bsg_host_vendor {*/ struct iscsi_bsg_host_vendor_reply {/* start of vendor response area */ -uint32_t vendor_rsp[0 ]; + DECLARE_FLEX_ARRAY(uint32_t, vendor_rsp); };
Signature · 1 line
2.47.0
Martin K. Petersen
AppliedThorsten,
Quoted 2 lines
Replace the deprecated zero-length array with a modern flexible array member in the struct
iscsi_bsg_host_vendor_reply.
Applied to 6.14/scsi-staging, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering
Martin K. Petersen
AppliedQuoted 4 lines · Thorsten Blum
Replace the deprecated zero-length array with a modern flexible array member in the struct
iscsi_bsg_host_vendor_reply.
Applied to 6.14/scsi-queue, thanks!
[1/1] scsi: Replace zero-length array with flexible array member
https://git.kernel.org/mkp/scsi/c/cdb03e598750
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering