numam-dpdk/drivers/net/cxgbe
Rahul Lakkireddy c6db4a1574 net/cxgbe: fix build with optimization=1
Initialize maddr and mtype to fix following warnings when
using optimization=1 compilation flag.

In file included from ../drivers/net/cxgbe/base/common.h:13,
                 from ../drivers/net/cxgbe/cxgbe_main.c:37:
../drivers/net/cxgbe/cxgbe_main.c: In function ‘cxgbe_probe’:
../drivers/net/cxgbe/base/t4fw_interface.h:656:7:
	warning: ‘maddr’ may be used uninitialized in this function
	[-Wmaybe-uninitialized]
  ((x) << S_FW_CAPS_CONFIG_CMD_MEMADDR64K_CF)
       ^~
../drivers/net/cxgbe/cxgbe_main.c:1111:40:
	note: ‘maddr’ was declared here
  u32 finiver, finicsum, cfcsum, mtype, maddr, param, val;
                                        ^~~~~
In file included from ../drivers/net/cxgbe/base/common.h:13,
                 from ../drivers/net/cxgbe/cxgbe_main.c:37:
../drivers/net/cxgbe/base/t4fw_interface.h:648:7:
	warning: ‘mtype’ may be used uninitialized in this function
	[-Wmaybe-uninitialized]
  ((x) << S_FW_CAPS_CONFIG_CMD_MEMTYPE_CF)
       ^~
../drivers/net/cxgbe/cxgbe_main.c:1111:33: note: ‘mtype’ was declared here
  u32 finiver, finicsum, cfcsum, mtype, maddr, param, val;
                                 ^~~~~
Bugzilla ID: 1029
Fixes: 6d7d651bbc ("net/cxgbe: read firmware configuration file from filesystem")

Reported-by: Daxue Gao <daxuex.gao@intel.com>
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
2022-06-09 15:37:58 +02:00
..
base net/cxgbe: read firmware configuration file from filesystem 2022-05-17 18:50:51 +02:00
clip_tbl.c net/cxgbe: use C11-style compiler builtins for atomics 2021-07-02 19:03:03 +02:00
clip_tbl.h replace zero-length arrays with flexible ones 2022-06-07 16:44:21 +02:00
cxgbe_compat.h net: add macro for VLAN header length 2021-11-17 20:17:04 +01:00
cxgbe_ethdev.c net/cxgbe: track packets dropped by TP due to congestion 2022-05-17 18:50:50 +02:00
cxgbe_filter.c net/cxgbe: rework queue allocation between ports 2020-09-18 18:55:12 +02:00
cxgbe_filter.h net/cxgbe: fix double MPS alloc by flow validate and create 2020-06-17 15:31:32 +02:00
cxgbe_flow.c fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
cxgbe_flow.h ethdev: replace callback getting filter operations 2021-03-26 18:37:13 +01:00
cxgbe_main.c net/cxgbe: fix build with optimization=1 2022-06-09 15:37:58 +02:00
cxgbe_ofld.h net/cxgbe: use C11-style compiler builtins for atomics 2021-07-02 19:03:03 +02:00
cxgbe_pfvf.h ethdev: change queue release callback 2021-10-06 19:16:03 +02:00
cxgbe.h ethdev: add namespace 2021-10-22 18:15:38 +02:00
cxgbevf_ethdev.c net/cxgbe: support firmware version query 2021-10-05 19:32:01 +02:00
cxgbevf_main.c fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
l2t.c net/cxgbe: use C11-style compiler builtins for atomics 2021-07-02 19:03:03 +02:00
l2t.h replace zero-length arrays with flexible ones 2022-06-07 16:44:21 +02:00
meson.build drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
mps_tcam.c net/cxgbe: add MAC match-all to track promiscuous traffic 2021-07-02 19:03:03 +02:00
mps_tcam.h replace zero-length arrays with flexible ones 2022-06-07 16:44:21 +02:00
sge.c net/cxgbe: simplify Rx payload buffer size posting 2022-05-05 17:58:09 +02:00
smt.c net/cxgbe: use C11-style compiler builtins for atomics 2021-07-02 19:03:03 +02:00
smt.h replace zero-length arrays with flexible ones 2022-06-07 16:44:21 +02:00
version.map version: 21.11-rc0 2021-08-17 08:37:52 +02:00