All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scsi: Replace zero-length array with flexible array member
@ 2024-11-10 15:17 Thorsten Blum
  2024-11-10 19:57 ` kernel test robot
  0 siblings, 1 reply; 3+ messages in thread
From: Thorsten Blum @ 2024-11-10 15:17 UTC (permalink / raw)
  To: Lee Duncan, Chris Leech, Mike Christie, James E.J. Bottomley,
	Martin K. Petersen
  Cc: linux-hardening, Thorsten Blum, open-iscsi, linux-scsi,
	linux-kernel

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>
---
 include/scsi/scsi_bsg_iscsi.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/scsi/scsi_bsg_iscsi.h b/include/scsi/scsi_bsg_iscsi.h
index 9b1f0f424a79..df8083f12119 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];
+	uint32_t vendor_rsp[];
 };
 
 
-- 
2.47.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-11-10 21:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-10 15:17 [PATCH] scsi: Replace zero-length array with flexible array member Thorsten Blum
2024-11-10 19:57 ` kernel test robot
2024-11-10 21:06   ` Gustavo A. R. Silva

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.