DPDK patches and discussions
 help / color / mirror / Atom feed
From: "Wu, WenxuanX" <wenxuanx.wu@intel.com>
To: David Marchand <david.marchand@redhat.com>
Cc: "Yang, Qiming" <qiming.yang@intel.com>,
	"Zhang, Qi Z" <qi.z.zhang@intel.com>, dev <dev@dpdk.org>,
	Thomas Monjalon <thomas@monjalon.net>,
	Stephen Hemminger <stephen@networkplumber.org>,
	"dpdk stable" <stable@dpdk.org>
Subject: RE: [PATCH] ice/base: fix gcc 12 warning stringop-overflow
Date: Fri, 17 Jun 2022 01:29:10 +0000	[thread overview]
Message-ID: <MW3PR11MB4665E5A422531FCC9D5F3427E5AF9@MW3PR11MB4665.namprd11.prod.outlook.com> (raw)
In-Reply-To: <CAJFAV8zCCNuSxjSp3q+_h52LiJYik4EjDhy5CW8gG9KBUB=djw@mail.gmail.com>

Thanks, do I need to send a new version to resolve formatting issues?

> -----Original Message-----
> From: David Marchand <david.marchand@redhat.com>
> Sent: 2022年6月16日 22:29
> To: Wu, WenxuanX <wenxuanx.wu@intel.com>
> Cc: Yang, Qiming <qiming.yang@intel.com>; Zhang, Qi Z
> <qi.z.zhang@intel.com>; dev <dev@dpdk.org>; Thomas Monjalon
> <thomas@monjalon.net>; Stephen Hemminger
> <stephen@networkplumber.org>; dpdk stable <stable@dpdk.org>
> Subject: Re: [PATCH] ice/base: fix gcc 12 warning stringop-overflow
> 
> Title should start with net/ice/base:.
> 
> On Thu, Jun 16, 2022 at 12:35 PM <wenxuanx.wu@intel.com> wrote:
> >
> > From: Wenxuan Wu <wenxuanx.wu@intel.com>
> >
> > Gcc with -O2 flag, would retrieve the value in one time.
> > This patch changed the type of fv_idx in struct ice_recp_grp_entry to
> > align with its callers which is also u8 type.
> >
> > When u8 idx[5] = a value u16 index[4], gcc12 would give this warning,
> > because it is not big enough to store the bytes(bigger than 5 bytes)
> > in one time (-O2 would do it in this way).
> >
> > Fixes: 04b8ec1ea807 ("net/ice/base: add protocol structures and
> > defines")
> > Cc: stable@dpdk.org
> Missing empty line.
> 
> > Signed-off-by: Wenxuan Wu <wenxuanx.wu@intel.com>
> 
> Only build tested.
> Tested-by: David Marchand <david.marchand@redhat.com>
> 
> 
> --
> David Marchand


  reply	other threads:[~2022-06-17  1:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-16 10:33 wenxuanx.wu
2022-06-16 14:29 ` David Marchand
2022-06-17  1:29   ` Wu, WenxuanX [this message]
2022-06-17  5:04     ` David Marchand
2022-06-19 12:34 ` Zhang, Qi Z
2022-06-20  1:38   ` Wu, WenxuanX
2022-06-20  5:06     ` Wu, WenxuanX
2022-06-23  7:42       ` David Marchand
2022-06-23  9:01 ` [PATCH v2] net/ice/base: " wenxuanx.wu
2022-06-23  9:21   ` Zhang, Qi Z

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=MW3PR11MB4665E5A422531FCC9D5F3427E5AF9@MW3PR11MB4665.namprd11.prod.outlook.com \
    --to=wenxuanx.wu@intel.com \
    --cc=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    --cc=qi.z.zhang@intel.com \
    --cc=qiming.yang@intel.com \
    --cc=stable@dpdk.org \
    --cc=stephen@networkplumber.org \
    --cc=thomas@monjalon.net \
    /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).