Skip to contentSkip to conversation

KVM: VMX: Silence warning on 32-bit hosts

PATCH Applied Jan Kiszka 2 participants 2 messages Jun 1, 2011 – Jun 3, 2011

Subsystems (3)
lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 KVM: VMX: Silence warning on 32-bit hosts

a is unused now on CONFIG_X86_32.

---
 arch/x86/kvm/vmx.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/x86/kvm/vmx.c +2 -0
index b3496ef..1e7a649 100644
@@ -3601,7 +3601,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 */
Signature · 1 line
1.7.1