Skip to contentSkip to conversation

fix missing prototype warning with USE_KVM_DEVICE_ASSIGNMENT disabled

PATCH New Daniel Gollub 1 participant 1 message Sep 10, 2009 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix missing prototype warning with USE_KVM_DEVICE_ASSIGNMENT disabled

Fixes warning about missing kvm_arch_do_ioperm prototype with USE_KVM_DEVICE_ASSIGNMENT disabled.

/var/lib/buildbot/qemu-kvm/default_x86_64_debian_5_0/build/qemu-kvm-x86.c:1635: warning: no previous prototype for 'kvm_arch_do_ioperm'

Patch only build-tested with i386 and x86_64 - not ia64!

Spotted by buildbot:
http://buildbot.b1-systems.de/qemu-kvm/builders/default_i386_debian_5_0/builds/59/steps/compile/logs/warnings
http://buildbot.b1-systems.de/qemu-kvm/builders/default_x86_64_debian_5_0/builds/57/steps/compile/logs/warnings

---
 qemu-kvm-ia64.c |    2 ++
 qemu-kvm-x86.c  |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
qemu-kvm-ia64.c +2 -0
index 062fbd4..8485452 100644
@@ -136,11 +136,13 @@ void kvm_arch_cpu_reset(CPUState *env)
     }
 }
 
+#ifdef USE_KVM_DEVICE_ASSIGNMENT
 void kvm_arch_do_ioperm(void *_data)
 {
     struct ioperm_data *data = _data;
     ioperm(data->start_port, data->num, data->turn_on);
 }
+#endif
 
 void kvm_arch_process_irqchip_events(CPUState *env)
 {
qemu-kvm-x86.c +2 -0
index f80d82b..92fff7c 100644
@@ -1632,11 +1632,13 @@ void kvm_arch_update_guest_debug(CPUState *env, struct kvm_guest_debug *dbg)
 }
 #endif
 
+#ifdef USE_KVM_DEVICE_ASSIGNMENT
 void kvm_arch_do_ioperm(void *_data)
 {
     struct ioperm_data *data = _data;
     ioperm(data->start_port, data->num, data->turn_on);
 }
+#endif
 
 /*
  * Setup x86 specific IRQ routing
Signature · 8 lines
Daniel Gollub                        Geschaeftsfuehrer: Ralph Dehner
FOSS Developer                       Unternehmenssitz:  Vohburg
B1 Systems GmbH                      Amtsgericht:       Ingolstadt
Mobil: +49-(0)-160 47 73 970         Handelsregister:   HRB 3537
EMail: [email protected]          http://www.b1-systems.de

Adresse: B1 Systems GmbH, Osterfeldstraße 7, 85088 Vohburg
http://pgpkeys.pca.dfn.de/pks/lookup?op=get&search=0xED14B95C2F8CA78D