[PATCH] qemu-kvm: Fix warning with DEVICE_ASSIGNMENT disabled

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Avi Kivity <avi@...>
Cc: kvm-devel <kvm@...>
Date: Saturday, July 4, 2009 - 5:00 am

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---

 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);
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] qemu-kvm: Fix warning with DEVICE_ASSIGNMENT disabled, Jan Kiszka, (Sat Jul 4, 5:00 am)