From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jes Sorensen Subject: [patch] fix prototypes in qemu posix code Date: Fri, 05 Sep 2008 15:49:12 +0200 Message-ID: <48C138D8.9030207@sgi.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050701080204080705050707" To: Avi Kivity , kvm@vger.kernel.org Return-path: Received: from relay2.sgi.com ([192.48.171.30]:52621 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752902AbYIENtP (ORCPT ); Fri, 5 Sep 2008 09:49:15 -0400 Sender: kvm-owner@vger.kernel.org List-ID: This is a multi-part message in MIME format. --------------050701080204080705050707 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, Small patch to eliminate some compiler warnings. Cheers, Jes --------------050701080204080705050707 Content-Type: text/plain; name="0101-qemu-missing-protos.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="0101-qemu-missing-protos.patch" 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 --- 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 --------------050701080204080705050707--