linux-next: build warnings after merge of the net-next tree

From: Stephen Rothwell <hidden>
Date: 2019-11-05 01:45:45
Also in: linux-next, lkml

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

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help