From: Jakub Kicinski <kuba@kernel.org>
To: David Laight <David.Laight@ACULAB.COM>
Cc: "davem@davemloft.net" <davem@davemloft.net>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"edumazet@google.com" <edumazet@google.com>,
"pabeni@redhat.com" <pabeni@redhat.com>,
"jesse.brandeburg@intel.com" <jesse.brandeburg@intel.com>,
"anthony.l.nguyen@intel.com" <anthony.l.nguyen@intel.com>
Subject: Re: [PATCH net-next] eth: ice: silence the GCC 12 array-bounds warning
Date: Fri, 20 May 2022 09:50:10 -0700 [thread overview]
Message-ID: <20220520095010.0f85db7f@kernel.org> (raw)
In-Reply-To: <fbde22661c6b4d5f82ca47d5703ab7a8@AcuMS.aculab.com>
On Fri, 20 May 2022 12:58:35 +0000 David Laight wrote:
> > +# FIXME: temporarily silence -Warray-bounds on non W=1 builds
> > +ifndef KBUILD_EXTRA_WARN
> > +CFLAGS_ice_switch.o += $(call cc-disable-warning, array-bounds)
> > +endif
> > --
> > 2.34.3
>
> Is it possible to just add:
>
> CFLAGS_ice_switch.o += $(disable-Warray-bounds)
>
> and then ensure that disable-Warray-bounds is defined
> (and expanded) by the time it is actually expanded?
> This might be before or after the makefile is expanded.
> But it would mean that the work is only done once.
> I've an idea that 'call cc-disable-warning' is non-trivial.
Happy to do whatever's recommended but the $(disable-Warray-bounds)
does not work, I still see the warning.
prev parent reply other threads:[~2022-05-20 16:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-20 6:09 [PATCH net-next] eth: ice: silence the GCC 12 array-bounds warning Jakub Kicinski
2022-05-20 12:58 ` David Laight
2022-05-20 16:50 ` Jakub Kicinski [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=20220520095010.0f85db7f@kernel.org \
--to=kuba@kernel.org \
--cc=David.Laight@ACULAB.COM \
--cc=anthony.l.nguyen@intel.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=jesse.brandeburg@intel.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.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).