KVM: VMX: Silence warning on 32-bit hosts
authorJan Kiszka <[email protected]>
Wed, 1 Jun 2011 10:57:30 +0000 (12:57 +0200)
committerAvi Kivity <[email protected]>
Tue, 12 Jul 2011 10:16:08 +0000 (13:16 +0300)
a is unused now on CONFIG_X86_32.

Signed-off-by: Jan Kiszka <[email protected]>
Signed-off-by: Marcelo Tosatti <[email protected]>
arch/x86/kvm/vmx.c

index 54e732d74fb150033c5ff6c691c9e65a8e6b2645..58badf1657d4f0352883614be74aa4dbeb90d27c 100644 (file)
@@ -3602,7 +3602,9 @@ static u32 vmx_secondary_exec_control(struct vcpu_vmx *vmx)
  */
 static int vmx_vcpu_setup(struct vcpu_vmx *vmx)
 {
+#ifdef CONFIG_X86_64
        unsigned long a;
+#endif
        int i;
 
        /* I/O */