From: Daniel Gollub Subject: [PATCH][RESEND] qemu-kvm: fix warnings with USE_KVM_DEVICE_ASSIGNMENT disabled Date: Thu, 10 Sep 2009 12:11:20 +0200 Message-ID: <200909101211.21198.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]:53830 "EHLO d112a2.x-mailer.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753042AbZIJKJX convert rfc822-to-8bit (ORCPT ); Thu, 10 Sep 2009 06:09:23 -0400 Sender: kvm-owner@vger.kernel.org List-ID: =46ix warnings with USE_KVM_DEVICE_ASSIGNMENT disabled, spotted by buil= dbot: http://buildbot.b1-systems.de/qemu-kvm/builders/default_x86_64_debian_5= _0/builds/55/steps/compile/logs/warnings Signed-off-by: Daniel Gollub -- qemu-kvm.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/qemu-kvm.c b/qemu-kvm.c index e2f3b91..78eeb6f 100644 --- a/qemu-kvm.c +++ b/qemu-kvm.c @@ -66,8 +66,10 @@ static CPUState *kvm_debug_cpu_requested; =20 static uint64_t phys_ram_size; =20 +#ifdef USE_KVM_DEVICE_ASSIGNMENT /* The list of ioperm_data */ static LIST_HEAD(, ioperm_data) ioperm_head; +#endif =20 //#define DEBUG_MEMREG #ifdef DEBUG_MEMREG @@ -1829,7 +1831,9 @@ static void *ap_main_loop(void *_env) { CPUState *env =3D _env; sigset_t signals; +#ifdef USE_KVM_DEVICE_ASSIGNMENT struct ioperm_data *data =3D NULL; +#endif =20 current_env =3D env; env->thread_id =3D kvm_get_thread_id(); --=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