Re: [Qemu-devel] [PATCH v2 1/2] tests: Use real size for iov tests

2017-08-30 Thread Eric Blake
On 08/30/2017 06:33 AM, Juan Quintela wrote: > We were using -1 instead of the real size because the functions check > what is bigger, size in bytes or the size of the iov. Recent gcc's > barf at this. > > Signed-off-by: Juan Quintela > > -- > > Remove comments about this feature. > Fix missin

Re: [Qemu-devel] [PATCH v2 1/2] tests: Use real size for iov tests

2017-08-30 Thread Cleber Rosa
On 08/30/2017 07:33 AM, Juan Quintela wrote: > We were using -1 instead of the real size because the functions check > what is bigger, size in bytes or the size of the iov. Recent gcc's > barf at this. > > Signed-off-by: Juan Quintela > > -- > > Remove comments about this feature. > Fix miss

[Qemu-devel] [PATCH v2 1/2] tests: Use real size for iov tests

2017-08-30 Thread Juan Quintela
We were using -1 instead of the real size because the functions check what is bigger, size in bytes or the size of the iov. Recent gcc's barf at this. Signed-off-by: Juan Quintela -- Remove comments about this feature. Fix missing -1. --- include/qemu/iov.h | 6 -- tests/test-iov.c | 1