Re: [EXT] Re: [PATCH v3] vhost: compilation fix for GCC-12

2022-10-06 Thread David Marchand
On Thu, Oct 6, 2022 at 10:05 AM Amit Prakash Shukla wrote: > > Hi Maxime, > > Sure, I will test and reply on your patch. Thomas merged Maxime alternative. Marking this patch as rejected. Thanks. -- David Marchand

RE: [EXT] Re: [PATCH v3] vhost: compilation fix for GCC-12

2022-10-06 Thread Amit Prakash Shukla
.@dpdk.org; ruifeng.w...@arm.com > Subject: [EXT] Re: [PATCH v3] vhost: compilation fix for GCC-12 > > External Email > > -- > Hi Amit, > > On 10/6/22 09:22, Amit Prakash Shukla wrote: > > Ping. > >

Re: [PATCH v3] vhost: compilation fix for GCC-12

2022-10-06 Thread Maxime Coquelin
: compilation fix for GCC-12 GCC-12 complains about the possible use of un-initialized array. At compile time it seems like it is not able to evaluate the size as it involves run-time variable and at compile time it seems like gcc assumes value of "size" variable to be zero which makes gcc-12 t

RE: [PATCH v3] vhost: compilation fix for GCC-12

2022-10-06 Thread Amit Prakash Shukla
Ping. > -Original Message- > From: Amit Prakash Shukla > Sent: Friday, September 2, 2022 8:36 PM > To: Maxime Coquelin ; Chenbo Xia > > Cc: dev@dpdk.org; Jerin Jacob Kollanukkaran ; > sta...@dpdk.org; ruifeng.w...@arm.com; Amit Prakash Shukla > > Subject: [P

[PATCH v3] vhost: compilation fix for GCC-12

2022-09-02 Thread Amit Prakash Shukla
GCC-12 complains about the possible use of un-initialized array. At compile time it seems like it is not able to evaluate the size as it involves run-time variable and at compile time it seems like gcc assumes value of "size" variable to be zero which makes gcc-12 to jump the while loop. "size = pk