numam-dpdk/drivers/net/qede
Amit Prakash Shukla acc0ed087c net/qede/base: fix 32-bit build with GCC 12
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: 3b307c55f2 ("net/qede/base: update FW to 8.40.25.0")
Cc: stable@dpdk.org

Signed-off-by: Amit Prakash Shukla <amitprakashs@marvell.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
2022-10-06 12:28:05 +02:00
..
base net/qede/base: fix 32-bit build with GCC 12 2022-10-06 12:28:05 +02:00
meson.build drivers: change indentation in build files 2021-04-21 14:04:09 +02:00
qede_debug.c net/qede: fix build with GCC 13 2022-06-20 19:27:03 +02:00
qede_debug.h net/qede: add infrastructure for debug data collection 2020-07-11 06:18:53 +02:00
qede_ethdev.c net/qede: fix build with GCC 12 2022-06-23 16:02:02 +02:00
qede_ethdev.h dev: hide driver object 2022-09-23 16:14:34 +02:00
qede_filter.c ethdev: remove deprecated Flow Director configuration 2022-08-31 15:24:23 +02:00
qede_if.h net/qede: configure VFs on hardware 2020-09-30 19:19:11 +02:00
qede_logs.h net/qede: move SPDX tags to source files 2018-07-23 23:55:26 +02:00
qede_main.c net/qede: fix build with GCC 12 2022-06-23 16:02:02 +02:00
qede_regs.c drivers/net: fix port id size 2020-09-30 19:19:15 +02:00
qede_rxtx.c net/qede: fix maximum Rx packet length 2022-03-10 08:40:37 +01:00
qede_rxtx.h ethdev: introduce generic dummy packet burst function 2022-02-11 21:17:34 +01:00
qede_sriov.c net/qede: fix build with GCC 12 2022-06-23 16:02:02 +02:00
qede_sriov.h net/qede: initialize VF MAC and link 2020-09-30 19:19:11 +02:00
version.map version: 22.11-rc0 2022-07-21 12:13:48 +02:00