Skip to content

Commit

Permalink
scsi: Replace zero-length array with flexible array member
Browse files Browse the repository at this point in the history
Replace the deprecated zero-length array with a modern flexible array
member in the struct iscsi_bsg_host_vendor_reply.

Link: KSPP#78
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
  • Loading branch information
toblux authored and intel-lab-lkp committed Nov 10, 2024
1 parent 84ce8b0 commit bf576e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/scsi/scsi_bsg_iscsi.h
Original file line number Diff line number Diff line change
Expand Up @@ -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];
uint32_t vendor_rsp[];
};


Expand Down

0 comments on commit bf576e9

Please # to comment.