From: Harvey Harrison Date: Fri, 22 Aug 2008 20:29:17 +0000 (-0700) Subject: KVM: x86.c make kvm_load_realmode_segment static X-Git-Tag: MMI-PSA29.97-13-9~31370^2~32 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2259e3a7a6089007839cd4bbf7c9867190c67238;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git KVM: x86.c make kvm_load_realmode_segment static 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 Signed-off-by: Avi Kivity --- diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 108f07267e87..1b738cb02831 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -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,