]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
KVM: x86.c make kvm_load_realmode_segment static
authorHarvey Harrison <harvey.harrison@gmail.com>
Fri, 22 Aug 2008 20:29:17 +0000 (13:29 -0700)
committerAvi Kivity <avi@redhat.com>
Wed, 15 Oct 2008 12:25:07 +0000 (14:25 +0200)
Noticed by sparse:
arch/x86/kvm/x86.c:3591:5: warning: symbol 'kvm_load_realmode_segment' was not declared. Should it be static?

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c

index 108f07267e87b1c5c3ead8d1d6315d105383ffcb..1b738cb02831e7b00da68e8cafe26039a04ee40c 100644 (file)
@@ -3611,7 +3611,7 @@ static int load_segment_descriptor_to_kvm_desct(struct kvm_vcpu *vcpu,
        return 0;
 }
 
-int kvm_load_realmode_segment(struct kvm_vcpu *vcpu, u16 selector, int seg)
+static int kvm_load_realmode_segment(struct kvm_vcpu *vcpu, u16 selector, int seg)
 {
        struct kvm_segment segvar = {
                .base = selector << 4,