From: "Morten Brørup" <mb@smartsharesystems.com>
To: "Stephen Hemminger" <stephen@networkplumber.org>, <dev@dpdk.org>
Cc: "Yipeng Wang" <yipeng1.wang@intel.com>,
"Sameh Gobriel" <sameh.gobriel@intel.com>,
"Bruce Richardson" <bruce.richardson@intel.com>,
"Vladimir Medvedkin" <vladimir.medvedkin@intel.com>,
"fengchengwen" <fengchengwen@huawei.com>
Subject: RE: [PATCH] hash: replace zero length array
Date: Thu, 21 Aug 2025 03:43:36 +0200 [thread overview]
Message-ID: <98CBD80474FA8B44BF855DF32C47DC35E9FE59@smartserver.smartshare.dk> (raw)
In-Reply-To: <0b845c31-7c76-4cc4-b1e6-a1912be7898b@huawei.com>
> From: fengchengwen [mailto:fengchengwen@huawei.com]
> Sent: Thursday, 21 August 2025 02.43
>
> Acked-by: Chengwen Feng <fengchengwen@huawei.com>
>
> On 8/21/2025 5:19 AM, Stephen Hemminger wrote:
> > Zero-length arrays are a GNU C extension and instead use the ISO C99
> > flexible array member.
> >
> > Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> > ---
> > lib/hash/rte_cuckoo_hash.h | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/lib/hash/rte_cuckoo_hash.h b/lib/hash/rte_cuckoo_hash.h
> > index 26a992419a..cf5cd29144 100644
> > --- a/lib/hash/rte_cuckoo_hash.h
> > +++ b/lib/hash/rte_cuckoo_hash.h
> > @@ -131,7 +131,7 @@ struct rte_hash_key {
> > RTE_ATOMIC(void *) pdata;
> > };
> > /* Variable key size */
> > - char key[0];
> > + char key[];
> > };
> >
> > /** Bucket structure */
Acked-by: Morten Brørup <mb@smartsharesystems.com>
prev parent reply other threads:[~2025-08-21 1:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-20 21:19 Stephen Hemminger
2025-08-21 0:42 ` fengchengwen
2025-08-21 1:43 ` Morten Brørup [this message]
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=98CBD80474FA8B44BF855DF32C47DC35E9FE59@smartserver.smartshare.dk \
--to=mb@smartsharesystems.com \
--cc=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
--cc=fengchengwen@huawei.com \
--cc=sameh.gobriel@intel.com \
--cc=stephen@networkplumber.org \
--cc=vladimir.medvedkin@intel.com \
--cc=yipeng1.wang@intel.com \
/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).