c6db4a1574
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:
|
||
---|---|---|
.. | ||
base | ||
clip_tbl.c | ||
clip_tbl.h | ||
cxgbe_compat.h | ||
cxgbe_ethdev.c | ||
cxgbe_filter.c | ||
cxgbe_filter.h | ||
cxgbe_flow.c | ||
cxgbe_flow.h | ||
cxgbe_main.c | ||
cxgbe_ofld.h | ||
cxgbe_pfvf.h | ||
cxgbe.h | ||
cxgbevf_ethdev.c | ||
cxgbevf_main.c | ||
l2t.c | ||
l2t.h | ||
meson.build | ||
mps_tcam.c | ||
mps_tcam.h | ||
sge.c | ||
smt.c | ||
smt.h | ||
version.map |