DPDK patches and discussions
 help / color / mirror / Atom feed
From: Bruce Richardson <bruce.richardson@intel.com>
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: <dev@dpdk.org>, <pbhagavatula@marvell.com>,
	Chengwen Feng <fengchengwen@huawei.com>,
	Kevin Laatz <kevin.laatz@intel.com>
Subject: Re: [PATCH] dmadev: replace zero length array
Date: Thu, 16 Oct 2025 09:15:04 +0100	[thread overview]
Message-ID: <aPCpiEAYt6YM4-Ai@bricha3-mobl1.ger.corp.intel.com> (raw)
In-Reply-To: <20251015185946.338417-1-stephen@networkplumber.org>

On Wed, Oct 15, 2025 at 11:59:46AM -0700, Stephen Hemminger wrote:
> 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[];
>  };
>  
Acked-by: Bruce Richardson <bruce.richardson@intel.com>


  reply	other threads:[~2025-10-16  8:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-15 18:59 Stephen Hemminger
2025-10-16  8:15 ` Bruce Richardson [this message]
2025-10-16  9:47   ` Morten Brørup
2025-10-16  9:50     ` Pavan Nikhilesh Bhagavatula

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aPCpiEAYt6YM4-Ai@bricha3-mobl1.ger.corp.intel.com \
    --to=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=fengchengwen@huawei.com \
    --cc=kevin.laatz@intel.com \
    --cc=pbhagavatula@marvell.com \
    --cc=stephen@networkplumber.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).