diff options
author | Hannes Eder <hannes@hanneseder.net> | 2009-02-20 20:19:13 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-03-24 05:03:14 -0400 |
commit | cded19f396bc3c9d299331709d0a9fbc6ecc148a (patch) | |
tree | b6aa4f8246e7341965d0100fec6c65a156235fed /arch/x86/kvm/mmu.c | |
parent | d7364a29b305862cbc92b3f8b6ad9968270d068c (diff) |
KVM: fix sparse warnings: Should it be static?
Impact: Make symbols static.
Fix this sparse warnings:
arch/x86/kvm/mmu.c:992:5: warning: symbol 'mmu_pages_add' was not declared. Should it be static?
arch/x86/kvm/mmu.c:1124:5: warning: symbol 'mmu_pages_next' was not declared. Should it be static?
arch/x86/kvm/mmu.c:1144:6: warning: symbol 'mmu_pages_clear_parents' was not declared. Should it be static?
arch/x86/kvm/x86.c:2037:5: warning: symbol 'kvm_read_guest_virt' was not declared. Should it be static?
arch/x86/kvm/x86.c:2067:5: warning: symbol 'kvm_write_guest_virt' was not declared. Should it be static?
virt/kvm/irq_comm.c:220:5: warning: symbol 'setup_routing_entry' was not declared. Should it be static?
Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/mmu.c')
-rw-r--r-- | arch/x86/kvm/mmu.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 4a21b0f8491c..2a36f7f7c4c7 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c | |||
@@ -989,8 +989,8 @@ struct kvm_mmu_pages { | |||
989 | idx < 512; \ | 989 | idx < 512; \ |
990 | idx = find_next_bit(bitmap, 512, idx+1)) | 990 | idx = find_next_bit(bitmap, 512, idx+1)) |
991 | 991 | ||
992 | int mmu_pages_add(struct kvm_mmu_pages *pvec, struct kvm_mmu_page *sp, | 992 | static int mmu_pages_add(struct kvm_mmu_pages *pvec, struct kvm_mmu_page *sp, |
993 | int idx) | 993 | int idx) |
994 | { | 994 | { |
995 | int i; | 995 | int i; |
996 | 996 | ||
@@ -1121,8 +1121,9 @@ struct mmu_page_path { | |||
1121 | i < pvec.nr && ({ sp = pvec.page[i].sp; 1;}); \ | 1121 | i < pvec.nr && ({ sp = pvec.page[i].sp; 1;}); \ |
1122 | i = mmu_pages_next(&pvec, &parents, i)) | 1122 | i = mmu_pages_next(&pvec, &parents, i)) |
1123 | 1123 | ||
1124 | int mmu_pages_next(struct kvm_mmu_pages *pvec, struct mmu_page_path *parents, | 1124 | static int mmu_pages_next(struct kvm_mmu_pages *pvec, |
1125 | int i) | 1125 | struct mmu_page_path *parents, |
1126 | int i) | ||
1126 | { | 1127 | { |
1127 | int n; | 1128 | int n; |
1128 | 1129 | ||
@@ -1141,7 +1142,7 @@ int mmu_pages_next(struct kvm_mmu_pages *pvec, struct mmu_page_path *parents, | |||
1141 | return n; | 1142 | return n; |
1142 | } | 1143 | } |
1143 | 1144 | ||
1144 | void mmu_pages_clear_parents(struct mmu_page_path *parents) | 1145 | static void mmu_pages_clear_parents(struct mmu_page_path *parents) |
1145 | { | 1146 | { |
1146 | struct kvm_mmu_page *sp; | 1147 | struct kvm_mmu_page *sp; |
1147 | unsigned int level = 0; | 1148 | unsigned int level = 0; |