diff options
author | Fengguang Wu <fengguang.wu@intel.com> | 2015-01-19 09:33:39 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-01-20 14:38:35 -0500 |
commit | 69b0049a89ad418cd68aa59e7f1e6619a04a4a6f (patch) | |
tree | fbfaae21814d391c4ed6ad89574f717dd470c117 /arch/x86/kvm/x86.c | |
parent | d91ffee9ec633c6523ef1ea39c36ace578760258 (diff) |
KVM: fix "Should it be static?" warnings from sparse
arch/x86/kvm/x86.c:495:5: sparse: symbol 'kvm_read_nested_guest_page' was not declared. Should it be static?
arch/x86/kvm/x86.c:646:5: sparse: symbol '__kvm_set_xcr' was not declared. Should it be static?
arch/x86/kvm/x86.c:1183:15: sparse: symbol 'max_tsc_khz' was not declared. Should it be static?
arch/x86/kvm/x86.c:1237:6: sparse: symbol 'kvm_track_tsc_matching' was not declared. Should it be static?
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r-- | arch/x86/kvm/x86.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 98930c64b06e..dcb996bfafa4 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -496,7 +496,7 @@ int kvm_read_guest_page_mmu(struct kvm_vcpu *vcpu, struct kvm_mmu *mmu, | |||
496 | } | 496 | } |
497 | EXPORT_SYMBOL_GPL(kvm_read_guest_page_mmu); | 497 | EXPORT_SYMBOL_GPL(kvm_read_guest_page_mmu); |
498 | 498 | ||
499 | int kvm_read_nested_guest_page(struct kvm_vcpu *vcpu, gfn_t gfn, | 499 | static int kvm_read_nested_guest_page(struct kvm_vcpu *vcpu, gfn_t gfn, |
500 | void *data, int offset, int len, u32 access) | 500 | void *data, int offset, int len, u32 access) |
501 | { | 501 | { |
502 | return kvm_read_guest_page_mmu(vcpu, vcpu->arch.walk_mmu, gfn, | 502 | return kvm_read_guest_page_mmu(vcpu, vcpu->arch.walk_mmu, gfn, |
@@ -647,7 +647,7 @@ static void kvm_put_guest_xcr0(struct kvm_vcpu *vcpu) | |||
647 | } | 647 | } |
648 | } | 648 | } |
649 | 649 | ||
650 | int __kvm_set_xcr(struct kvm_vcpu *vcpu, u32 index, u64 xcr) | 650 | static int __kvm_set_xcr(struct kvm_vcpu *vcpu, u32 index, u64 xcr) |
651 | { | 651 | { |
652 | u64 xcr0 = xcr; | 652 | u64 xcr0 = xcr; |
653 | u64 old_xcr0 = vcpu->arch.xcr0; | 653 | u64 old_xcr0 = vcpu->arch.xcr0; |
@@ -1193,7 +1193,7 @@ static atomic_t kvm_guest_has_master_clock = ATOMIC_INIT(0); | |||
1193 | #endif | 1193 | #endif |
1194 | 1194 | ||
1195 | static DEFINE_PER_CPU(unsigned long, cpu_tsc_khz); | 1195 | static DEFINE_PER_CPU(unsigned long, cpu_tsc_khz); |
1196 | unsigned long max_tsc_khz; | 1196 | static unsigned long max_tsc_khz; |
1197 | 1197 | ||
1198 | static inline u64 nsec_to_cycles(struct kvm_vcpu *vcpu, u64 nsec) | 1198 | static inline u64 nsec_to_cycles(struct kvm_vcpu *vcpu, u64 nsec) |
1199 | { | 1199 | { |
@@ -1247,7 +1247,7 @@ static u64 compute_guest_tsc(struct kvm_vcpu *vcpu, s64 kernel_ns) | |||
1247 | return tsc; | 1247 | return tsc; |
1248 | } | 1248 | } |
1249 | 1249 | ||
1250 | void kvm_track_tsc_matching(struct kvm_vcpu *vcpu) | 1250 | static void kvm_track_tsc_matching(struct kvm_vcpu *vcpu) |
1251 | { | 1251 | { |
1252 | #ifdef CONFIG_X86_64 | 1252 | #ifdef CONFIG_X86_64 |
1253 | bool vcpus_matched; | 1253 | bool vcpus_matched; |