[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kvm
Subject:    [PATCH] qemu-kvm: fix warning with USE_KVM_DEVICE_ASSIGNMENT disabled
From:       Daniel Gollub <gollub () b1-systems ! de>
Date:       2009-08-31 10:23:23
Message-ID: 200908311223.24261.gollub () b1-systems ! de
[Download RAW message or body]

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


Sigend-off-by: Daniel Gollub <gollub@b1-systems.de

---

 qemu-kvm-x86.c |    2 ++
 qemu-kvm.c     |    4 ++++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/qemu-kvm-x86.c b/qemu-kvm-x86.c
index f80d82b..92fff7c 100644
--- a/qemu-kvm-x86.c
+++ b/qemu-kvm-x86.c
@@ -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
diff --git a/qemu-kvm.c b/qemu-kvm.c
index d554749..e79fc49 100644
--- a/qemu-kvm.c
+++ b/qemu-kvm.c
@@ -66,8 +66,10 @@ static CPUState *kvm_debug_cpu_requested;
 
 static uint64_t phys_ram_size;
 
+#ifdef USE_KVM_DEVICE_ASSIGNMENT
 /* The list of ioperm_data */
 static LIST_HEAD(, ioperm_data) ioperm_head;
+#endif
 
 //#define DEBUG_MEMREG
 #ifdef	DEBUG_MEMREG
@@ -1815,7 +1817,9 @@ static void *ap_main_loop(void *_env)
 {
     CPUState *env = _env;
     sigset_t signals;
+#ifdef USE_KVM_DEVICE_ASSIGNMENT
     struct ioperm_data *data = NULL;
+#endif
 
     current_env = env;
     env->thread_id = kvm_get_thread_id();

-- 
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: gollub@b1-systems.de          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


["signature.asc" (application/pgp-signature)]
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic