numam-dpdk/drivers/net
Ferruh Yigit b3c740e037 net/bnx2x: fix build with GCC 11
Reproduced with '--buildtype=debugoptimized' config,
compiler version: gcc (GCC) 12.0.0 20210509 (experimental)

Build error:
In file included from ../drivers/net/bnx2x/bnx2x_rxtx.c:8:
../drivers/net/bnx2x/bnx2x_rxtx.c: In function ‘bnx2x_upd_rx_prod_fast’:
../drivers/net/bnx2x/bnx2x.h:1528:35:
    warning: ‘rx_prods’ is used uninitialized [-Wuninitialized]
 #define REG_WR32(sc, offset, val) bnx2x_reg_write32(sc, (offset), val)
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/net/bnx2x/bnx2x.h:1531:33:
	note: in expansion of macro ‘REG_WR32’
 1531 | #define REG_WR(sc, offset, val) REG_WR32(sc, offset, val)
      |                                 ^~~~~~~~
../drivers/net/bnx2x/bnx2x_rxtx.c:331:9:
	note: in expansion of macro ‘REG_WR’
  331 |         REG_WR(sc, fp->ustorm_rx_prods_offset, val[0]);
      |         ^~~~~~
../drivers/net/bnx2x/bnx2x_rxtx.c:324:40: note: ‘rx_prods’ declared here
  324 |         struct ustorm_eth_rx_producers rx_prods = { 0 };
      |                                        ^~~~~~~~

REG_WR32 requires 'uint32_t', use union instead of cast to 'uint32_t'.

Bugzilla ID: 692
Fixes: 38dff79ba7 ("net/bnx2x: update HSI")
Cc: stable@dpdk.org

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Kevin Traynor <ktraynor@redhat.com>
2021-05-12 14:54:16 +02:00
..
af_packet log: register with standardized names 2021-05-11 15:17:55 +02:00
af_xdp net/af_xdp: fix build with Linux < 5.4 2021-05-11 16:11:26 +02:00
ark net/ark: fix control thread argument 2021-05-12 00:44:06 +02:00
atlantic log: register with standardized names 2021-05-11 15:17:55 +02:00
avp log: register with standardized names 2021-05-11 15:17:55 +02:00
axgbe log: register with standardized names 2021-05-11 15:17:55 +02:00
bnx2x net/bnx2x: fix build with GCC 11 2021-05-12 14:54:16 +02:00
bnxt log: register with standardized names 2021-05-11 15:17:55 +02:00
bonding log: register with standardized names 2021-05-11 15:17:55 +02:00
cxgbe log: register with standardized names 2021-05-11 15:17:55 +02:00
dpaa log: register with standardized names 2021-05-11 15:17:55 +02:00
dpaa2 log: register with standardized names 2021-05-11 15:17:55 +02:00
e1000 log: register with standardized names 2021-05-11 15:17:55 +02:00
ena net/ena: disable ops not supported by secondary process 2021-05-12 14:19:03 +02:00
enetc log: register with standardized names 2021-05-11 15:17:55 +02:00
enic net/enic: enable GENEVE offload via VNIC configuration 2021-05-11 23:52:26 +02:00
failsafe log: register with standardized names 2021-05-11 15:17:55 +02:00
fm10k log: register with standardized names 2021-05-11 15:17:55 +02:00
hinic log: register with standardized names 2021-05-11 15:17:55 +02:00
hns3 net/hns3: fail setting FEC if one bit mode is not supported 2021-05-11 20:07:59 +02:00
i40e net/i40e: fix VF RSS configuration 2021-05-12 14:21:27 +02:00
iavf net/iavf: fix Tx context descriptor 2021-05-12 10:52:54 +02:00
ice net/ice: fix VSI array out of bounds access 2021-05-12 14:21:09 +02:00
igc net/igc: fix speed configuration 2021-05-12 14:21:27 +02:00
ionic log: register with standardized names 2021-05-11 15:17:55 +02:00
ipn3ke log: register with standardized names 2021-05-11 15:17:55 +02:00
ixgbe log: register with standardized names 2021-05-11 15:17:55 +02:00
kni log: register with standardized names 2021-05-11 15:17:55 +02:00
liquidio log: register with standardized names 2021-05-11 15:17:55 +02:00
memif log: register with standardized names 2021-05-11 15:17:55 +02:00
mlx4 log: register with standardized names 2021-05-11 15:17:55 +02:00
mlx5 net/mlx5: fix tunnel offload private items location 2021-05-12 00:03:18 +02:00
mvneta log: register with standardized names 2021-05-11 15:17:55 +02:00
mvpp2 log: register with standardized names 2021-05-11 15:17:55 +02:00
netvsc log: register with standardized names 2021-05-11 15:17:55 +02:00
nfb drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
nfp net/nfp: fix reporting of RSS capabilities 2021-05-11 15:31:32 +02:00
null log: register with standardized names 2021-05-11 15:17:55 +02:00
octeontx log: register with standardized names 2021-05-11 15:17:55 +02:00
octeontx2 drivers/net: fix FW version query 2021-04-26 13:50:42 +02:00
octeontx_ep log: register with standardized names 2021-05-11 15:17:55 +02:00
pcap log: register with standardized names 2021-05-11 15:17:55 +02:00
pfe log: register with standardized names 2021-05-11 15:17:55 +02:00
qede log: register with standardized names 2021-05-11 15:17:55 +02:00
ring log: register with standardized names 2021-05-11 15:17:55 +02:00
sfc net/sfc: fix mark support in EF100 native Rx datapath 2021-04-30 18:06:22 +02:00
softnic log: register with standardized names 2021-05-11 15:17:55 +02:00
szedata2 log: register with standardized names 2021-05-11 15:17:55 +02:00
tap log: register with standardized names 2021-05-11 15:17:55 +02:00
thunderx log: register with standardized names 2021-05-11 15:17:55 +02:00
txgbe net/txgbe: fix QinQ strip 2021-05-11 18:51:21 +02:00
vdev_netvsc log: register with standardized names 2021-05-11 15:17:55 +02:00
vhost log: register with standardized names 2021-05-11 15:17:55 +02:00
virtio log: register with standardized names 2021-05-11 15:17:55 +02:00
vmxnet3 log: register with standardized names 2021-05-11 15:17:55 +02:00
meson.build drivers: clean up build lists 2021-04-21 12:37:55 +02:00