All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrey Ryabinin <a.ryabinin@samsung.com>
To: kbuild test robot <fengguang.wu@intel.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: Thu, 19 Feb 2015 18:39:28 +0300	[thread overview]
Message-ID: <54E603B0.60505@samsung.com> (raw)
In-Reply-To: <201502190116.RU3JpDne%fengguang.wu@intel.com>

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.

--
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>

  reply	other threads:[~2015-02-19 15:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-18 17:14 drivers/net/ethernet/broadcom/tg3.c:17811:37: warning: array subscript is above array bounds kbuild test robot
2015-02-19 15:39 ` Andrey Ryabinin [this message]
2015-02-20  1:16   ` Fengguang Wu

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=54E603B0.60505@samsung.com \
    --to=a.ryabinin@samsung.com \
    --cc=adech.fo@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=fengguang.wu@intel.com \
    --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 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.