Re: [PATCH] net/dump.c: Suppress spurious compiler warning

2022-01-12 Thread Eric Blake
On Mon, Jan 10, 2022 at 10:38:59AM +0100, Philippe Mathieu-Daudé wrote: > Cc'ing Richard & Eric for dubious compiler warning. > > On 1/9/22 21:57, Philipp Tomsich wrote: > > Compiling with gcc version 11.2.0 (Ubuntu 11.2.0-13ubuntu1) results in > > a (spurious) warning: > > > > In function ‘dum

Re: [PATCH] net/dump.c: Suppress spurious compiler warning

2022-01-10 Thread Philipp Tomsich
Note that I don't expect this to get applied. I just put it onto the list for visibility and to make the workaround available for downstream users that might run into the issue while Ubuntu 22.04 is maturing. I won't have any time to dig into this on the GCC side until GCC12 is out. Philipp. On

Re: [PATCH] net/dump.c: Suppress spurious compiler warning

2022-01-10 Thread Philippe Mathieu-Daudé
Cc'ing Richard & Eric for dubious compiler warning. On 1/9/22 21:57, Philipp Tomsich wrote: > Compiling with gcc version 11.2.0 (Ubuntu 11.2.0-13ubuntu1) results in > a (spurious) warning: > > In function ‘dump_receive_iov’, > inlined from ‘filter_dump_receive_iov’ at ../net/dump.c:157:5:

[PATCH] net/dump.c: Suppress spurious compiler warning

2022-01-09 Thread Philipp Tomsich
Compiling with gcc version 11.2.0 (Ubuntu 11.2.0-13ubuntu1) results in a (spurious) warning: In function ‘dump_receive_iov’, inlined from ‘filter_dump_receive_iov’ at ../net/dump.c:157:5: ../net/dump.c:89:9: error: ‘writev’ specified size 18446744073709551600 exceeds maximum object size