DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] dmadev: replace zero length array
@ 2025-10-15 18:59 Stephen Hemminger
  0 siblings, 0 replies; only message in thread
From: Stephen Hemminger @ 2025-10-15 18:59 UTC (permalink / raw)
  To: dev
  Cc: Stephen Hemminger, pbhagavatula, Chengwen Feng, Kevin Laatz,
	Bruce Richardson

Use of zero length arrays is Gcc extension.
Found by zero_length_array.cocci.

Fixes: 9674119fbf27 ("dmadev: add enqueue/dequeue operations")
Cc: pbhagavatula@marvell.com
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 lib/dmadev/rte_dmadev.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/dmadev/rte_dmadev.h b/lib/dmadev/rte_dmadev.h
index 30e168825e..8ae9ee031b 100644
--- a/lib/dmadev/rte_dmadev.h
+++ b/lib/dmadev/rte_dmadev.h
@@ -856,7 +856,7 @@ struct rte_dma_op {
 	/** Number of destination segments. */
 	uint16_t nb_dst;
 	/** Source and destination segments. */
-	struct rte_dma_sge src_dst_seg[0];
+	struct rte_dma_sge src_dst_seg[];
 };
 
 #ifdef __cplusplus
-- 
2.47.3


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-10-15 18:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-15 18:59 [PATCH] dmadev: replace zero length array Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).