Hi,

Small patch to eliminate some compiler warnings.

Cheers,
Jes
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 <[EMAIL PROTECTED]>

---
 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>

Reply via email to