Re: [PATCH v3 1/2] Fix net.c warning on GCC 11

2021-01-14 Thread Philippe Mathieu-Daudé
On 1/14/21 3:42 PM, Alexander Bulekov wrote: > On 210114 1538, Miroslav Rezanina wrote: >> On Thu, Jan 14, 2021 at 09:19:20AM -0500, Alexander Bulekov wrote: >>> On 210114 1415, Philippe Mathieu-Daudé wrote: +Jason +Dmitry On 1/14/21 8:07 AM, Miroslav Rezanina wrote: > When buil

Re: [PATCH v3 1/2] Fix net.c warning on GCC 11

2021-01-14 Thread Alexander Bulekov
On 210114 1538, Miroslav Rezanina wrote: > On Thu, Jan 14, 2021 at 09:19:20AM -0500, Alexander Bulekov wrote: > > On 210114 1415, Philippe Mathieu-Daudé wrote: > > > +Jason +Dmitry > > > > > > On 1/14/21 8:07 AM, Miroslav Rezanina wrote: > > > > When building qemu with GCC 11, compiling eth.c fil

Re: [PATCH v3 1/2] Fix net.c warning on GCC 11

2021-01-14 Thread Miroslav Rezanina
On Thu, Jan 14, 2021 at 02:15:59PM +0100, Philippe Mathieu-Daudé wrote: > +Jason +Dmitry > > On 1/14/21 8:07 AM, Miroslav Rezanina wrote: > > When building qemu with GCC 11, compiling eth.c file produce following > > warning: > > > >warning: array subscript 'struct ip6_ext_hdr_routing[0]' i

Re: [PATCH v3 1/2] Fix net.c warning on GCC 11

2021-01-14 Thread Philippe Mathieu-Daudé
On 1/14/21 3:19 PM, Alexander Bulekov wrote: > On 210114 1415, Philippe Mathieu-Daudé wrote: >> +Jason +Dmitry >> >> On 1/14/21 8:07 AM, Miroslav Rezanina wrote: >>> When building qemu with GCC 11, compiling eth.c file produce following >>> warning: >>> >>>warning: array subscript 'struct ip6_

Re: [PATCH v3 1/2] Fix net.c warning on GCC 11

2021-01-14 Thread Miroslav Rezanina
On Thu, Jan 14, 2021 at 09:19:20AM -0500, Alexander Bulekov wrote: > On 210114 1415, Philippe Mathieu-Daudé wrote: > > +Jason +Dmitry > > > > On 1/14/21 8:07 AM, Miroslav Rezanina wrote: > > > When building qemu with GCC 11, compiling eth.c file produce following > > > warning: > > > > > >w

Re: [PATCH v3 1/2] Fix net.c warning on GCC 11

2021-01-14 Thread Alexander Bulekov
On 210114 1415, Philippe Mathieu-Daudé wrote: > +Jason +Dmitry > > On 1/14/21 8:07 AM, Miroslav Rezanina wrote: > > When building qemu with GCC 11, compiling eth.c file produce following > > warning: > > > >warning: array subscript 'struct ip6_ext_hdr_routing[0]' is partly > > outside array

Re: [PATCH v3 1/2] Fix net.c warning on GCC 11

2021-01-14 Thread Philippe Mathieu-Daudé
+Jason +Dmitry On 1/14/21 8:07 AM, Miroslav Rezanina wrote: > When building qemu with GCC 11, compiling eth.c file produce following > warning: > >warning: array subscript 'struct ip6_ext_hdr_routing[0]' is partly outside > array bounds of 'struct ip6_ext_hdr[1]' [-Warray-bounds] > > This

[PATCH v3 1/2] Fix net.c warning on GCC 11

2021-01-13 Thread Miroslav Rezanina
When building qemu with GCC 11, compiling eth.c file produce following warning: warning: array subscript 'struct ip6_ext_hdr_routing[0]' is partly outside array bounds of 'struct ip6_ext_hdr[1]' [-Warray-bounds] This is caused by retyping from ip6_ext_hdr to ip6_ext_hdr_routing that has more