From: Daniel Gollub Subject: [PATCH] fix missing prototype warning with USE_KVM_DEVICE_ASSIGNMENT disabled Date: Thu, 10 Sep 2009 14:56:46 +0200 Message-ID: <200909101456.46826.gollub@b1-systems.de> Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from d112a2.x-mailer.de ([212.162.53.4]:36553 "EHLO d112a2.x-mailer.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752273AbZIJMys convert rfc822-to-8bit (ORCPT ); Thu, 10 Sep 2009 08:54:48 -0400 Sender: kvm-owner@vger.kernel.org List-ID: =46ixes warning about missing kvm_arch_do_ioperm prototype with USE_KVM_DEVICE_ASSIGNMENT disabled. /var/lib/buildbot/qemu-kvm/default_x86_64_debian_5_0/build/qemu-kvm-x86= =2Ec:1635: warning: no previous prototype for 'kvm_arch_do_ioperm' Patch only build-tested with i386 and x86_64 - not ia64! Spotted by buildbot: http://buildbot.b1-systems.de/qemu-kvm/builders/default_i386_debian_5_0= /builds/59/steps/compile/logs/warnings http://buildbot.b1-systems.de/qemu-kvm/builders/default_x86_64_debian_5= _0/builds/57/steps/compile/logs/warnings Signed-off-by: Daniel Gollub --- qemu-kvm-ia64.c | 2 ++ qemu-kvm-x86.c | 2 ++ 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/qemu-kvm-ia64.c b/qemu-kvm-ia64.c index 062fbd4..8485452 100644 --- a/qemu-kvm-ia64.c +++ b/qemu-kvm-ia64.c @@ -136,11 +136,13 @@ void kvm_arch_cpu_reset(CPUState *env) } } =20 +#ifdef USE_KVM_DEVICE_ASSIGNMENT void kvm_arch_do_ioperm(void *_data) { struct ioperm_data *data =3D _data; ioperm(data->start_port, data->num, data->turn_on); } +#endif =20 void kvm_arch_process_irqchip_events(CPUState *env) { diff --git a/qemu-kvm-x86.c b/qemu-kvm-x86.c index f80d82b..92fff7c 100644 --- a/qemu-kvm-x86.c +++ b/qemu-kvm-x86.c @@ -1632,11 +1632,13 @@ void kvm_arch_update_guest_debug(CPUState *env,= struct kvm_guest_debug *dbg) } #endif =20 +#ifdef USE_KVM_DEVICE_ASSIGNMENT void kvm_arch_do_ioperm(void *_data) { struct ioperm_data *data =3D _data; ioperm(data->start_port, data->num, data->turn_on); } +#endif =20 /* * Setup x86 specific IRQ routing --=20 Daniel Gollub Geschaeftsfuehrer: Ralph Dehner =46OSS Developer Unternehmenssitz: Vohburg B1 Systems GmbH Amtsgericht: Ingolstadt Mobil: +49-(0)-160 47 73 970 Handelsregister: HRB 3537 EMail: gollub@b1-systems.de http://www.b1-systems.de Adresse: B1 Systems GmbH, Osterfeldstra=DFe 7, 85088 Vohburg http://pgpkeys.pca.dfn.de/pks/lookup?op=3Dget&search=3D0xED14B95C2F8CA7= 8D