acc0ed087c
A pointer is passed to a macro and it seems mistakenly referenced.
This issue is seen only when compiling with GCC 12 for 32-bit:
drivers/net/qede/base/ecore_init_fw_funcs.c:1418:25:
error: array subscript 1 is outside array bounds of ‘u32[1]’
{aka ‘unsigned int[1]’} [-Werror=array-bounds]
1418 | ecore_wr(dev, ptt, ((addr) + (4 * i)), \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1419 | ((u32 *)&(arr))[i]); \
| ~~~~~~~~~~~~~~~~~~~
drivers/net/qede/base/ecore_init_fw_funcs.c:1465:17:
note: in expansion of macro ‘ARR_REG_WR’
1465 | ARR_REG_WR(p_hwfn, p_ptt, addr, pData, len_in_dwords);
| ^~~~~~~~~~
drivers/net/qede/base/ecore_init_fw_funcs.c:1439:35:
note: at offset 4 into object ‘pData’ of size 4
1439 | u32 *pData,
| ~~~~~^~~~~
Fixes:
|
||
---|---|---|
.. | ||
base | ||
meson.build | ||
qede_debug.c | ||
qede_debug.h | ||
qede_ethdev.c | ||
qede_ethdev.h | ||
qede_filter.c | ||
qede_if.h | ||
qede_logs.h | ||
qede_main.c | ||
qede_regs.c | ||
qede_rxtx.c | ||
qede_rxtx.h | ||
qede_sriov.c | ||
qede_sriov.h | ||
version.map |