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/x86.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/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 e4db5be7c953..8ca100a9ecac 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -2043,8 +2043,8 @@ static struct kvm_io_device *vcpu_find_mmio_dev(struct kvm_vcpu *vcpu, | |||
2043 | return dev; | 2043 | return dev; |
2044 | } | 2044 | } |
2045 | 2045 | ||
2046 | int kvm_read_guest_virt(gva_t addr, void *val, unsigned int bytes, | 2046 | static int kvm_read_guest_virt(gva_t addr, void *val, unsigned int bytes, |
2047 | struct kvm_vcpu *vcpu) | 2047 | struct kvm_vcpu *vcpu) |
2048 | { | 2048 | { |
2049 | void *data = val; | 2049 | void *data = val; |
2050 | int r = X86EMUL_CONTINUE; | 2050 | int r = X86EMUL_CONTINUE; |
@@ -2073,8 +2073,8 @@ out: | |||
2073 | return r; | 2073 | return r; |
2074 | } | 2074 | } |
2075 | 2075 | ||
2076 | int kvm_write_guest_virt(gva_t addr, void *val, unsigned int bytes, | 2076 | static int kvm_write_guest_virt(gva_t addr, void *val, unsigned int bytes, |
2077 | struct kvm_vcpu *vcpu) | 2077 | struct kvm_vcpu *vcpu) |
2078 | { | 2078 | { |
2079 | void *data = val; | 2079 | void *data = val; |
2080 | int r = X86EMUL_CONTINUE; | 2080 | int r = X86EMUL_CONTINUE; |