Skip to contentSkip to conversation

qemu-kvm: Fix warning with DEVICE_ASSIGNMENT disabled

PATCH Applied Jan Kiszka 2 participants 2 messages Jul 4, 2009 – Jul 6, 2009 KVM

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 qemu-kvm: Fix warning with DEVICE_ASSIGNMENT disabled

---

 hw/pci-hotplug.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
hw/pci-hotplug.c +2 -0
index 66fa377..1180758 100644
@@ -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);
Applied
#1 lore raw

On 07/04/2009 12:00 PM, Jan Kiszka wrote:

Applied, thanks.

Signature · 1 line
error compiling committee.c: too many arguments to function