Skip to content

Commit cdb03e5

Browse files
tobluxmartinkpetersen
authored andcommitted
scsi: bsg: 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. Link: KSPP/linux#78 Signed-off-by: Thorsten Blum <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 5f8822c commit cdb03e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/scsi/scsi_bsg_iscsi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ struct iscsi_bsg_host_vendor {
5959
*/
6060
struct iscsi_bsg_host_vendor_reply {
6161
/* start of vendor response area */
62-
uint32_t vendor_rsp[0];
62+
DECLARE_FLEX_ARRAY(uint32_t, vendor_rsp);
6363
};
6464

6565

0 commit comments

Comments
 (0)