Skip to contentSkip to conversation

qemu-kvm: compatfd: trivial compile fix

PATCH Applied Chris Wright 2 participants 2 messages Dec 15, 2009 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qemu-kvm: compatfd: trivial compile fix

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

---
 compatfd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
compatfd.c +1 -1
index e87bb9e..4a00d95 100644
@@ -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;
Applied
#1 lore raw
Quoted 10 lines · Chris Wright

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

Applied, thanks.

Signature · 1 line
error compiling committee.c: too many arguments to function