summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2024-11-10 23:33:24 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2024-12-04 13:04:42 -0500
commitcdb03e598750e7ebc222571aa96653e9b5a59dbe (patch)
tree9cbc330892371b536a8f89b8c72c986ba6bbe446
parent5f8822c4a4209b186ba655841993e5797c31e19e (diff)
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: https://github.com/KSPP/linux/issues/78 Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Link: https://lore.kernel.org/r/20241110223323.42772-2-thorsten.blum@linux.dev Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r--include/scsi/scsi_bsg_iscsi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/scsi/scsi_bsg_iscsi.h b/include/scsi/scsi_bsg_iscsi.h
index 9b1f0f424a79..a569c35b258d 100644
--- a/include/scsi/scsi_bsg_iscsi.h
+++ b/include/scsi/scsi_bsg_iscsi.h
@@ -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);
};