From: Fengguang Wu <fengguang.wu@intel.com>
To: Andrey Ryabinin <a.ryabinin@samsung.com>
Cc: kbuild-all@01.org, Andrey Konovalov <adech.fo@gmail.com>,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: Re: drivers/net/ethernet/broadcom/tg3.c:17811:37: warning: array subscript is above array bounds
Date: Fri, 20 Feb 2015 09:16:25 +0800 [thread overview]
Message-ID: <20150220011625.GA4228@wfg-t540p.sh.intel.com> (raw)
In-Reply-To: <54E603B0.60505@samsung.com>
Hi Andrey,
On Thu, Feb 19, 2015 at 06:39:28PM +0300, Andrey Ryabinin wrote:
> On 02/18/2015 08:14 PM, kbuild test robot wrote:
> > tree: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> > head: f5af19d10d151c5a2afae3306578f485c244db25
> > commit: ef7f0d6a6ca8c9e4b27d78895af86c2fbfaeedb2 x86_64: add KASan support
> > date: 5 days ago
> > config: x86_64-randconfig-iv1-02190055 (attached as .config)
> > reproduce:
> > git checkout ef7f0d6a6ca8c9e4b27d78895af86c2fbfaeedb2
> > # save the attached .config to linux build tree
> > make ARCH=x86_64
> >
> > Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
> >
> > All warnings:
> >
> > drivers/net/ethernet/broadcom/tg3.c: In function 'tg3_init_one':
> >>> drivers/net/ethernet/broadcom/tg3.c:17811:37: warning: array subscript is above array bounds [-Warray-bounds]
> > struct tg3_napi *tnapi = &tp->napi[i];
> > ^
> >>> drivers/net/ethernet/broadcom/tg3.c:17811:37: warning: array subscript is above array bounds [-Warray-bounds]
> >
>
> This probably a GCC bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59124
> I see this warning with 4.9.2, but not with GCC 5 where this should be fixed already.
Yes we are running gcc 4.9.2. Thank you for the info, I'll disable this warning for now.
Regards,
Fengguang
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
prev parent reply other threads:[~2015-02-20 1:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-18 17:14 kbuild test robot
2015-02-19 15:39 ` Andrey Ryabinin
2015-02-20 1:16 ` Fengguang Wu [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=20150220011625.GA4228@wfg-t540p.sh.intel.com \
--to=fengguang.wu@intel.com \
--cc=a.ryabinin@samsung.com \
--cc=adech.fo@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=kbuild-all@01.org \
--cc=linux-mm@kvack.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