diff mbox

qemu-kvm: Fix warning with DEVICE_ASSIGNMENT disabled

Message ID 4A4F1A18.50900@web.de (mailing list archive)
State New, archived
Headers show

Commit Message

Jan Kiszka July 4, 2009, 9 a.m. UTC
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---

 hw/pci-hotplug.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Comments

Avi Kivity July 6, 2009, 7:41 a.m. UTC | #1
On 07/04/2009 12:00 PM, Jan Kiszka wrote:

Applied, thanks.
diff mbox

Patch

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 slot)
 {
     PCIDevice *d = pci_find_device(pcibus, slot, 0);
     int class_code;
+#ifdef USE_KVM_DEVICE_ASSIGNMENT
     AssignedDevInfo *adev;
+#endif
 
     if (!d) {
         monitor_printf(cur_mon, "invalid slot %d\n", slot);