From: Thomas Monjalon <thomas@monjalon.net>
To: Yuying Zhang <Yuying.Zhang@intel.com>,
Beilei Xing <beilei.xing@intel.com>,
amitprakashs@marvell.com
Cc: dev@dpdk.org
Subject: Re: [PATCH] net/i40e: fix build with MinGW GCC 12
Date: Thu, 06 Oct 2022 12:27:46 +0200 [thread overview]
Message-ID: <2127972.Icojqenx9y@thomas> (raw)
In-Reply-To: <2673690.9PvXe5no7K@thomas>
04/10/2022 13:21, Thomas Monjalon:
> 04/10/2022 13:17, Thomas Monjalon:
> > When compiling with MinGW GCC 12,
> > the rte_flow_item array is seen as read out of bound:
> >
> > net/i40e/i40e_hash.c:389:47: error:
> > array subscript 50 is above array bounds of ‘const uint64_t[50]’
> > {aka ‘const long long unsigned int[50]’} [-Werror=array-bounds]
> > 389 | item_hdr = pattern_item_header[last_item_type];
> > | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
> >
> > It seems the assert check done above this line has no impact.
> > A check is added to make the compiler happy.
>
> We could add those lines as the real issue is the item array:
>
> Fixes: ef4c16fd9148 ("net/i40e: refactor RSS flow")
> Cc: stable@dpdk.org
>
> > Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
A similar patch was sent 6 weeks ago by Amit Prakash Shukla.
prev parent reply other threads:[~2022-10-06 10:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-04 11:17 [PATCH] net/i40e: fix build with MinGW GCC 12 Thomas Monjalon
2022-10-04 11:21 ` Thomas Monjalon
2022-10-06 10:27 ` Thomas Monjalon [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=2127972.Icojqenx9y@thomas \
--to=thomas@monjalon.net \
--cc=Yuying.Zhang@intel.com \
--cc=amitprakashs@marvell.com \
--cc=beilei.xing@intel.com \
--cc=dev@dpdk.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 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.