From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=43683 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PIzS8-0000y9-88 for qemu-devel@nongnu.org; Thu, 18 Nov 2010 03:02:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PIzS6-0004tf-Dk for qemu-devel@nongnu.org; Thu, 18 Nov 2010 03:02:44 -0500 Received: from mx1.redhat.com ([209.132.183.28]:61657) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PIzS6-0004tS-6Q for qemu-devel@nongnu.org; Thu, 18 Nov 2010 03:02:42 -0500 Message-ID: <4CE4DD91.9050209@redhat.com> Date: Thu, 18 Nov 2010 09:02:25 +0100 From: Jes Sorensen MIME-Version: 1.0 References: <4CE47643.7030808@jp.fujitsu.com> In-Reply-To: <4CE47643.7030808@jp.fujitsu.com> Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH v4] virtio-9p: fix build on !CONFIG_UTIMENSAT List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Hidetoshi Seto Cc: Blue Swirl , "kvm@vger.kernel.org" , "Hao, Xudong" , "qemu-devel@nongnu.org" , Chris Wright , "M. Mohan Kumar" , Avi Kivity On 11/18/10 01:41, Hidetoshi Seto wrote: > This patch introduce a fallback mechanism for old systems that do not > support utimensat(). This fix build failure with following warnings: > > hw/virtio-9p-local.c: In function 'local_utimensat': > hw/virtio-9p-local.c:479: warning: implicit declaration of function 'utimensat' > hw/virtio-9p-local.c:479: warning: nested extern declaration of 'utimensat' > > and: > > hw/virtio-9p.c: In function 'v9fs_setattr_post_chmod': > hw/virtio-9p.c:1410: error: 'UTIME_NOW' undeclared (first use in this function) > hw/virtio-9p.c:1410: error: (Each undeclared identifier is reported only once > hw/virtio-9p.c:1410: error: for each function it appears in.) > hw/virtio-9p.c:1413: error: 'UTIME_OMIT' undeclared (first use in this function) > hw/virtio-9p.c: In function 'v9fs_wstat_post_chmod': > hw/virtio-9p.c:2905: error: 'UTIME_OMIT' undeclared (first use in this function) > > v4: > - Use tv_now.tv_usec > - Rebased on latest qemu.git > v3: > - Use better alternative handling for UTIME_NOW/OMIT > - Move qemu_utimensat() to cutils.c > V2: > - Introduce qemu_utimensat() > > Acked-by: Chris Wright > Acked-by: M. Mohan Kumar > Signed-off-by: Hidetoshi Seto Hi Hidetoshi, I think the idea of the patch is good, but please move qemu_utimensat() to oslib-posix.c and provide a wrapper for oslib-win32.c. It is emulation for a system library function, so it doesn't belong in cutils.c, but rather in the oslib group. Thanks, Jes