Received: from [140.186.70.92] (port=54127 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHpse-0000M7-6P for qemu-devel@nongnu.org; Sun, 14 Nov 2010 22:37:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PHpsZ-0001Uv-UE for qemu-devel@nongnu.org; Sun, 14 Nov 2010 22:37:20 -0500 Received: from sous-sol.org ([216.99.217.87]:58188 helo=sequoia.sous-sol.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PHpsZ-0001Uc-Dn for qemu-devel@nongnu.org; Sun, 14 Nov 2010 22:37:15 -0500 Date: Sun, 14 Nov 2010 19:36:50 -0800 From: Chris Wright Message-ID: <20101115033650.GA24803@sequoia.sous-sol.org> References: <4CB56715.7080605@jp.fujitsu.com> <4CB64FF6.5080906@jp.fujitsu.com> <20101104170303.GE15211@sequoia.sous-sol.org> <4CD3A513.2010102@jp.fujitsu.com> <20101114055822.GE25164@sequoia.sous-sol.org> <4CE0969D.5070703@jp.fujitsu.com> <4CE097C4.3070700@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4CE097C4.3070700@jp.fujitsu.com> Subject: [Qemu-devel] Re: [PATCH v3] 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" , Jes.Sorensen@redhat.com, "Hao, Xudong" , "qemu-devel@nongnu.org" , Chris Wright , mohan@in.ibm.com, Avi Kivity * Hidetoshi Seto (seto.hidetoshi@jp.fujitsu.com) 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) > > v3: > - Use better alternative handling for UTIME_NOW/OMIT > - Move qemu_utimensat() to cutils.c > V2: > - Introduce qemu_utimensat() > > Signed-off-by: Hidetoshi Seto Looks good to me (no strong opinion on the cutils vs oslib-posix that Jes mentioned). Acked-by: Chris Wright