From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wright Subject: [PATCH] qemu-kvm: compatfd: trivial compile fix Date: Mon, 14 Dec 2009 17:05:40 -0800 Message-ID: <20091215010540.GC1759@sequoia.sous-sol.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Avi Kivity , Marcelo Tosatti To: kvm@vger.kernel.org Return-path: Received: from sous-sol.org ([216.99.217.87]:57666 "EHLO sequoia.sous-sol.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758262AbZLOBF7 (ORCPT ); Mon, 14 Dec 2009 20:05:59 -0500 Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: =46ix build when !CONFIG_EVENTFD CC compatfd.o compatfd.c: In function =E2=80=98qemu_eventfd=E2=80=99: compatfd.c:137: error: =E2=80=98ret=E2=80=99 undeclared (first use in t= his function) compatfd.c:137: error: (Each undeclared identifier is reported only onc= e compatfd.c:137: error: for each function it appears in.) make: *** [compatfd.o] Error 1 Signed-off-by: Chris Wright --- compatfd.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/compatfd.c b/compatfd.c index e87bb9e..4a00d95 100644 --- a/compatfd.c +++ b/compatfd.c @@ -118,9 +118,9 @@ int qemu_signalfd(const sigset_t *mask) =20 int qemu_eventfd(int *fds) { -#if defined(CONFIG_EVENTFD) int ret; =20 +#if defined(CONFIG_EVENTFD) ret =3D syscall(SYS_eventfd, 0); if (ret >=3D 0) { fds[0] =3D ret;