aboutsummaryrefslogtreecommitdiff
path: root/kvm-all.c
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-18 22:42:51 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2008-12-18 22:42:51 +0000
commita9c11522bb4daabc43b3fe12d08c8db6deb2ac79 (patch)
tree0730e87a42c864f6937f0f7a02696e769833efa0 /kvm-all.c
parentc50c2d6847b18b4e8983c8a7bbd5f184282ad7a4 (diff)
downloadqemu-a9c11522bb4daabc43b3fe12d08c8db6deb2ac79.zip
qemu-a9c11522bb4daabc43b3fe12d08c8db6deb2ac79.tar.gz
qemu-a9c11522bb4daabc43b3fe12d08c8db6deb2ac79.tar.bz2
KVM: Silence unused s warning
Move s under #ifdef to avoid compiler warning. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6086 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'kvm-all.c')
-rw-r--r--kvm-all.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvm-all.c b/kvm-all.c
index 11034df..9fb295c 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -654,9 +654,9 @@ int kvm_vcpu_ioctl(CPUState *env, int type, ...)
int kvm_has_sync_mmu(void)
{
+#ifdef KVM_CAP_SYNC_MMU
KVMState *s = kvm_state;
-#ifdef KVM_CAP_SYNC_MMU
if (kvm_ioctl(s, KVM_CHECK_EXTENSION, KVM_CAP_SYNC_MMU) > 0)
return 1;
#endif