Re: [PATCH 09/12] vdpa/ifc: fix build with GCC 12

2022-06-11 Thread Stephen Hemminger
On Wed, 18 May 2022 12:16:54 +0200 David Marchand wrote: > GCC 12 raises the following warning: > > ../drivers/vdpa/ifc/ifcvf_vdpa.c: In function ‘vdpa_enable_vfio_intr’: > ../drivers/vdpa/ifc/ifcvf_vdpa.c:383:62: error: writing 4 bytes into a > region of size 0 [-Werror=stringop-overflow=]

RE: [PATCH 09/12] vdpa/ifc: fix build with GCC 12

2022-05-18 Thread Wang, Xiao W
Hi, > -Original Message- > From: David Marchand > Sent: Wednesday, May 18, 2022 6:17 PM > To: dev@dpdk.org > Cc: tho...@monjalon.net; ferruh.yi...@xilinx.com; sta...@dpdk.org; > Wang, Xiao W > Subject: [PATCH 09/12] vdpa/ifc: fix build with GCC 12 > >

[PATCH 09/12] vdpa/ifc: fix build with GCC 12

2022-05-18 Thread David Marchand
GCC 12 raises the following warning: ../drivers/vdpa/ifc/ifcvf_vdpa.c: In function ‘vdpa_enable_vfio_intr’: ../drivers/vdpa/ifc/ifcvf_vdpa.c:383:62: error: writing 4 bytes into a region of size 0 [-Werror=stringop-overflow=] 383 | fd_ptr[RTE_INTR_VEC_RXTX_OFFSET + i]