From: Jes Sorensen <jes@sgi.com>
To: Avi Kivity <avi@qumranet.com>, kvm@vger.kernel.org
Subject: [patch] fix prototypes in qemu posix code
Date: Fri, 05 Sep 2008 15:49:12 +0200 [thread overview]
Message-ID: <48C138D8.9030207@sgi.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 67 bytes --]
Hi,
Small patch to eliminate some compiler warnings.
Cheers,
Jes
[-- Attachment #2: 0101-qemu-missing-protos.patch --]
[-- Type: text/plain, Size: 919 bytes --]
Add missing prototypes for qemu_kvm_aio_wait_{start,end}. Fix dummy
macro declarations and remove unused qemu_kvm_aio_{start,end}
Signed-off-by: Jes Sorensen <jes@sgi.com>
---
qemu/block-raw-posix.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
Index: kvm-userspace.git/qemu/block-raw-posix.c
===================================================================
--- kvm-userspace.git.orig/qemu/block-raw-posix.c
+++ kvm-userspace.git/qemu/block-raw-posix.c
@@ -28,10 +28,10 @@
#include "exec-all.h"
#else
#define kvm_enabled() 0
-#define qemu_kvm_aio_start() ((void)0)
-#define qemu_kvm_aio_end() ((void)0)
-#define qemu_kvm_aio_wait() ((void)0)
-#define qemu_kvm_aio_poll() ((void)0)
+#define qemu_kvm_aio_wait() do{}while(0)
+#define qemu_kvm_aio_poll() do{}while(0)
+void qemu_kvm_aio_wait_start(void);
+void qemu_kvm_aio_wait_end(void);
#endif
#include "block_int.h"
#include <assert.h>
next reply other threads:[~2008-09-05 13:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-05 13:49 Jes Sorensen [this message]
2008-09-07 6:31 ` [patch] fix prototypes in qemu posix code 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=48C138D8.9030207@sgi.com \
--to=jes@sgi.com \
--cc=avi@qumranet.com \
--cc=kvm@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox