diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2014-08-29 08:01:17 -0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-08-29 10:35:53 -0400 |
commit | 656473003bc7e056c3bbd4a4d9832dad01e86f76 (patch) | |
tree | bc703dbf33c098a13c028aad2a99d9fba2a21643 /arch/mips/include/asm/kvm_host.h | |
parent | d5b77069701600b8189d3b4409b69f23ac4f5bc2 (diff) |
KVM: forward declare structs in kvm_types.h
Opaque KVM structs are useful for prototypes in asm/kvm_host.h, to avoid
"'struct foo' declared inside parameter list" warnings (and consequent
breakage due to conflicting types).
Move them from individual files to a generic place in linux/kvm_types.h.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/mips/include/asm/kvm_host.h')
-rw-r--r-- | arch/mips/include/asm/kvm_host.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/mips/include/asm/kvm_host.h b/arch/mips/include/asm/kvm_host.h index 7a3fc67bd7f9..b93bc80ed7e7 100644 --- a/arch/mips/include/asm/kvm_host.h +++ b/arch/mips/include/asm/kvm_host.h | |||
@@ -96,11 +96,6 @@ | |||
96 | #define CAUSEB_DC 27 | 96 | #define CAUSEB_DC 27 |
97 | #define CAUSEF_DC (_ULCAST_(1) << 27) | 97 | #define CAUSEF_DC (_ULCAST_(1) << 27) |
98 | 98 | ||
99 | struct kvm; | ||
100 | struct kvm_run; | ||
101 | struct kvm_vcpu; | ||
102 | struct kvm_interrupt; | ||
103 | |||
104 | extern atomic_t kvm_mips_instance; | 99 | extern atomic_t kvm_mips_instance; |
105 | extern pfn_t(*kvm_mips_gfn_to_pfn) (struct kvm *kvm, gfn_t gfn); | 100 | extern pfn_t(*kvm_mips_gfn_to_pfn) (struct kvm *kvm, gfn_t gfn); |
106 | extern void (*kvm_mips_release_pfn_clean) (pfn_t pfn); | 101 | extern void (*kvm_mips_release_pfn_clean) (pfn_t pfn); |