Re: [PATCH v3] vhost: fix build issues with GCC 12

2022-10-06 Thread Thomas Monjalon
05/10/2022 22:35, Maxime Coquelin: > This patch fixes a compilation issue met with GCC 12 on > LoongArch64: > > In function ‘mbuf_to_desc’, > inlined from ‘vhost_enqueue_async_packed’ at > ../../../dpdk/lib/vhost/virtio_net.c:1822:6, > inlined from ‘virtio_dev_rx_async_packed’ at > ../..

Re: [EXT] Re: [PATCH v3] vhost: fix build issues with GCC 12

2022-10-06 Thread Maxime Coquelin
Cc: dev@dpdk.org; cheng1.ji...@intel.com; chenbo@intel.com; zhou...@loongson.cn; david.march...@redhat.com; tho...@monjalon.net; sta...@dpdk.org Subject: [EXT] Re: [PATCH v3] vhost: fix build issues with GCC 12 External Email

RE: [EXT] Re: [PATCH v3] vhost: fix build issues with GCC 12

2022-10-06 Thread Amit Prakash Shukla
tel.com; chenbo@intel.com; > zhou...@loongson.cn; david.march...@redhat.com; > tho...@monjalon.net; sta...@dpdk.org > Subject: [EXT] Re: [PATCH v3] vhost: fix build issues with GCC 12 > > External Email > > --

Re: [PATCH v3] vhost: fix build issues with GCC 12

2022-10-06 Thread Maxime Coquelin
Hi Stephen, On 10/6/22 02:01, Stephen Hemminger wrote: On Wed, 5 Oct 2022 22:35:24 +0200 Maxime Coquelin wrote: In practice, it would never happen since 'pkt->pkt_len' is unlikely to be close to UINT32_MAX, but let's just change 'size' to uint64_t to make the compiler happy without having to

[PATCH v3] vhost: fix build issues with GCC 12

2022-10-05 Thread Maxime Coquelin
This patch fixes a compilation issue met with GCC 12 on LoongArch64: In function ‘mbuf_to_desc’, inlined from ‘vhost_enqueue_async_packed’ at ../../../dpdk/lib/vhost/virtio_net.c:1822:6, inlined from ‘virtio_dev_rx_async_packed’ at ../../../dpdk/lib/vhost/virtio_net.c:1836:6, inlined