From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: [PATCH] qemu-kvm: Fix warning with DEVICE_ASSIGNMENT disabled Date: Sat, 04 Jul 2009 11:00:08 +0200 Message-ID: <4A4F1A18.50900@web.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigD5A86FBD38DDB8C1DA0EA210" Cc: kvm-devel To: Avi Kivity Return-path: Received: from fmmailgate03.web.de ([217.72.192.234]:34528 "EHLO fmmailgate03.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751935AbZGDJAm (ORCPT ); Sat, 4 Jul 2009 05:00:42 -0400 Sender: kvm-owner@vger.kernel.org List-ID: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigD5A86FBD38DDB8C1DA0EA210 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Signed-off-by: Jan Kiszka --- hw/pci-hotplug.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/pci-hotplug.c b/hw/pci-hotplug.c index 66fa377..1180758 100644 --- a/hw/pci-hotplug.c +++ b/hw/pci-hotplug.c @@ -256,7 +256,9 @@ void pci_device_hot_remove_success(int pcibus, int sl= ot) { PCIDevice *d =3D pci_find_device(pcibus, slot, 0); int class_code; +#ifdef USE_KVM_DEVICE_ASSIGNMENT AssignedDevInfo *adev; +#endif =20 if (!d) { monitor_printf(cur_mon, "invalid slot %d\n", slot); --------------enigD5A86FBD38DDB8C1DA0EA210 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkpPGh4ACgkQniDOoMHTA+mGEQCfRf0pUvQWejxILjuWKTVa4Pms MDkAnRxVZlEcYTFmNO+i1hxgr+6+ELCU =T0Bj -----END PGP SIGNATURE----- --------------enigD5A86FBD38DDB8C1DA0EA210--