Re: drivers/net/ethernet/broadcom/tg3.c:17811:37: warning: array subscript is above array bounds

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]