Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=54e11fa1f87771df0fc1bb42a75be0740c3babb9
Commit:     54e11fa1f87771df0fc1bb42a75be0740c3babb9
Parent:     37c00051b53861929a910309c1823b415d55cfdf
Author:     Gabriel C <[EMAIL PROTECTED]>
AuthorDate: Wed Aug 1 16:23:10 2007 +0200
Committer:  Avi Kivity <[EMAIL PROTECTED]>
CommitDate: Sat Oct 13 10:18:22 2007 +0200

    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: Gabriel Craciunescu <[EMAIL PROTECTED]>
    Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>
---
 drivers/kvm/vmx.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c
index a94eb20..3bf3650 100644
--- a/drivers/kvm/vmx.c
+++ b/drivers/kvm/vmx.c
@@ -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.
  */
+#ifdef CONFIG_X86_64
 static void move_msr_up(struct vcpu_vmx *vmx, int from, int to)
 {
        struct kvm_msr_entry tmp;
@@ -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[from] = tmp;
 }
+#endif
 
 /*
  * Set up the vmcs to automatically save and restore system
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to