Commit 54e11fa1 authored by Gabriel C's avatar Gabriel C Committed by Avi Kivity

KVM: Fix defined but not used warning in drivers/kvm/vmx.c

move_msr_up() is used only on X86_64 and generates a warning on !X86_64
Signed-off-by: default avatarGabriel Craciunescu <nix.or.die@googlemail.com>
Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
parent 37c00051
...@@ -544,6 +544,7 @@ static void vmx_inject_gp(struct kvm_vcpu *vcpu, unsigned error_code) ...@@ -544,6 +544,7 @@ static void vmx_inject_gp(struct kvm_vcpu *vcpu, unsigned error_code)
/* /*
* Swap MSR entry in host/guest MSR entry array. * Swap MSR entry in host/guest MSR entry array.
*/ */
#ifdef CONFIG_X86_64
static void move_msr_up(struct vcpu_vmx *vmx, int from, int to) static void move_msr_up(struct vcpu_vmx *vmx, int from, int to)
{ {
struct kvm_msr_entry tmp; struct kvm_msr_entry tmp;
...@@ -555,6 +556,7 @@ static void move_msr_up(struct vcpu_vmx *vmx, int from, int to) ...@@ -555,6 +556,7 @@ static void move_msr_up(struct vcpu_vmx *vmx, int from, int to)
vmx->host_msrs[to] = vmx->host_msrs[from]; vmx->host_msrs[to] = vmx->host_msrs[from];
vmx->host_msrs[from] = tmp; vmx->host_msrs[from] = tmp;
} }
#endif
/* /*
* Set up the vmcs to automatically save and restore system * Set up the vmcs to automatically save and restore system
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment