From: Daniel Gollub Subject: [PATCH] qemu-kvm: fix warning with USE_KVM_DEVICE_ASSIGNMENT disabled Date: Mon, 31 Aug 2009 12:23:23 +0200 Message-ID: <200908311223.24261.gollub@b1-systems.de> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1398451.T7l87xkxEC"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from d112a2.x-mailer.de ([212.162.53.4]:50679 "EHLO d112a2.x-mailer.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751213AbZHaKVV (ORCPT ); Mon, 31 Aug 2009 06:21:21 -0400 Sender: kvm-owner@vger.kernel.org List-ID: --nextPart1398451.T7l87xkxEC Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Spotted by qemu-kvm buildbot: http://buildbot.b1-systems.de/qemu-kvm/builders/default_i386_debian_5_0/bui= lds/33/steps/compile/logs/warnings Sigend-off-by: Daniel Gollub start_port, data->num, data->turn_on); } +#endif =20 /* * Setup x86 specific IRQ routing diff --git a/qemu-kvm.c b/qemu-kvm.c index d554749..e79fc49 100644 =2D-- 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 @@ -1815,7 +1817,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(); =2D-=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=3D0xED14B95C2F8CA78D --nextPart1398451.T7l87xkxEC Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEABECAAYFAkqbpJwACgkQ7RS5XC+Mp42KCgCglMWjgDwIE3YiZ7uBbQRDEEsU onoAoIcjVtCnggnPXmpNcThmB/GcUOi1 =Gwch -----END PGP SIGNATURE----- --nextPart1398451.T7l87xkxEC--