Files
linux/drivers/net
Jakub Kicinski 9dec850fd7 eth: tg3: silence the GCC 12 array-bounds warning
GCC 12 currently generates a rather inconsistent warning:

drivers/net/ethernet/broadcom/tg3.c:17795:51: warning: array subscript 5 is above array bounds of ‘struct tg3_napi[5]’ [-Warray-bounds]
17795 |                 struct tg3_napi *tnapi = &tp->napi[i];
      |                                           ~~~~~~~~^~~

i is guaranteed < tp->irq_max which in turn is either 1 or 5.
There are more loops like this one in the driver, but strangely
GCC 12 dislikes only this single one.

Silence this silliness for now.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-05-22 22:21:11 +01:00
..
2022-05-02 13:57:56 -07:00
2022-05-06 12:07:56 +01:00
2022-05-20 17:38:27 -07:00
2022-05-11 13:09:59 +01:00
2022-05-05 15:54:12 -07:00
2022-05-16 10:18:56 +01:00