From: Chris Wright <chrisw@sous-sol.org>
To: kvm@vger.kernel.org
Cc: Avi Kivity <avi@redhat.com>, Marcelo Tosatti <mtosatti@redhat.com>
Subject: [PATCH] qemu-kvm: compatfd: trivial compile fix
Date: Mon, 14 Dec 2009 17:05:40 -0800 [thread overview]
Message-ID: <20091215010540.GC1759@sequoia.sous-sol.org> (raw)
Fix build when !CONFIG_EVENTFD
CC compatfd.o
compatfd.c: In function ‘qemu_eventfd’:
compatfd.c:137: error: ‘ret’ undeclared (first use in this function)
compatfd.c:137: error: (Each undeclared identifier is reported only once
compatfd.c:137: error: for each function it appears in.)
make: *** [compatfd.o] Error 1
Signed-off-by: Chris Wright <chrisw@redhat.com>
---
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)
int qemu_eventfd(int *fds)
{
-#if defined(CONFIG_EVENTFD)
int ret;
+#if defined(CONFIG_EVENTFD)
ret = syscall(SYS_eventfd, 0);
if (ret >= 0) {
fds[0] = ret;
next reply other threads:[~2009-12-15 1:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-15 1:05 Chris Wright [this message]
2009-12-15 9:40 ` [PATCH] qemu-kvm: compatfd: trivial compile fix Avi Kivity
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091215010540.GC1759@sequoia.sous-sol.org \
--to=chrisw@sous-sol.org \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.