kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][RESEND] qemu-kvm: fix warnings with USE_KVM_DEVICE_ASSIGNMENT disabled
@ 2009-09-10 10:11 Daniel Gollub
  2009-09-10 11:47 ` Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Gollub @ 2009-09-10 10:11 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm

Fix warnings with USE_KVM_DEVICE_ASSIGNMENT disabled, spotted by buildbot:

http://buildbot.b1-systems.de/qemu-kvm/builders/default_x86_64_debian_5_0/builds/55/steps/compile/logs/warnings

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

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

diff --git a/qemu-kvm.c b/qemu-kvm.c
index e2f3b91..78eeb6f 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
@@ -1829,7 +1831,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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-09-10 11:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-10 10:11 [PATCH][RESEND] qemu-kvm: fix warnings with USE_KVM_DEVICE_ASSIGNMENT disabled Daniel Gollub
2009-09-10 11:47 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).