Re: [Qemu-devel] [PATCH v2 06/20] 9p: Avoid warning if FS_IOC_GETVERSION is not defined

2018-06-01 Thread Greg Kurz
On Thu, 31 May 2018 21:26:01 -0400 Keno Fischer wrote: > Both `stbuf` and `local_ioc_getversion` where unused when > FS_IOC_GETVERSION was not defined, causing a compiler warning. > > Reorgnaize the code to avoid this warning. > > Signed-off-by: Keno Fischer > --- > > Changes since v1: > * A

[Qemu-devel] [PATCH v2 06/20] 9p: Avoid warning if FS_IOC_GETVERSION is not defined

2018-05-31 Thread Keno Fischer
Both `stbuf` and `local_ioc_getversion` where unused when FS_IOC_GETVERSION was not defined, causing a compiler warning. Reorgnaize the code to avoid this warning. Signed-off-by: Keno Fischer --- Changes since v1: * As request in review, logic is factored into a local_ioc_getversion_init fu