瀏覽代碼

KVM: VMX: Silence warning on 32-bit hosts

a is unused now on CONFIG_X86_32.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Jan Kiszka 14 年之前
父節點
當前提交
2e4ce7f574
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      arch/x86/kvm/vmx.c

+ 2 - 0
arch/x86/kvm/vmx.c

@@ -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 */