KVM: forward declare structs in kvm_types.h
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 29 Aug 2014 12:01:17 +0000 (14:01 +0200)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:19:15 +0000 (17:19 +0200)
commit48bc31d532d18a5e64c5ef1f20be161d0b834d11
tree491e0acfd99f6ba2cbbfde3bdeda3a036120698f
parent177e51e89403b6843d068a1dae873650053b32a4
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>
(cherry picked from commit 656473003bc7e056c3bbd4a4d9832dad01e86f76)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/include/asm/kvm_host.h
arch/arm64/include/asm/kvm_host.h
arch/ia64/include/asm/kvm_host.h
arch/mips/include/asm/kvm_host.h
arch/powerpc/include/asm/kvm_host.h
arch/s390/include/asm/kvm_host.h
arch/x86/include/asm/kvm_host.h
include/linux/kvm_host.h
include/linux/kvm_types.h