[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20191105124539.7566b922@canb.auug.org.au>
Date: Tue, 5 Nov 2019 12:45:39 +1100
From: Stephen Rothwell <sfr@...b.auug.org.au>
To: David Miller <davem@...emloft.net>,
Networking <netdev@...r.kernel.org>
Cc: Linux Next Mailing List <linux-next@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Venkat Duvvuru <venkatkumar.duvvuru@...adcom.com>,
Michael Chan <michael.chan@...adcom.com>
Subject: linux-next: build warnings after merge of the net-next tree
Hi all,
After merging the net-next tree, today's linux-next build (x86_64
allmodconfig) produced these warnings:
drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c: In function 'bnxt_tc_parse_flow':
drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c:532:8: warning: array subscript [12, 17] is outside array bounds of 'u16[6]' {aka 'short unsigned int[6]'} [-Warray-bounds]
532 | if (p[i] != 0)
| ~^~~
drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c:293:6: note: while referencing 'eth_addr'
293 | u16 eth_addr[ETH_ALEN] = { 0 };
| ^~~~~~~~
drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c:532:8: warning: array subscript [12, 17] is outside array bounds of 'u16[6]' {aka 'short unsigned int[6]'} [-Warray-bounds]
532 | if (p[i] != 0)
| ~^~~
drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c:288:6: note: while referencing 'eth_addr_mask'
288 | u16 eth_addr_mask[ETH_ALEN] = { 0 };
| ^~~~~~~~~~~~~
drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c:532:8: warning: array subscript [12, 17] is outside array bounds of 'u16[6]' {aka 'short unsigned int[6]'} [-Warray-bounds]
532 | if (p[i] != 0)
| ~^~~
drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c:288:6: note: while referencing 'eth_addr_mask'
288 | u16 eth_addr_mask[ETH_ALEN] = { 0 };
| ^~~~~~~~~~~~~
drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c:544:8: warning: array subscript [12, 17] is outside array bounds of 'u16[6]' {aka 'short unsigned int[6]'} [-Warray-bounds]
544 | if (p[i] != 0xff)
| ~^~~
drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c:288:6: note: while referencing 'eth_addr_mask'
288 | u16 eth_addr_mask[ETH_ALEN] = { 0 };
| ^~~~~~~~~~~~~
Introduced (I think) by commit
90f906243bf6 ("bnxt_en: Add support for L2 rewrite")
--
Cheers,
Stephen Rothwell
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists