[PATCH] kvm: declare kvm_ioapic in kvm_host.h

Christian Borntraeger
2009-02-26T12:40:41Z

With todays git I get the following warnings on s390:

CC [M] arch/s390/kvm/kvm-s390.o
In file included from arch/s390/kvm/kvm-s390.c:22:
include/linux/kvm_host.h:357: warning: 'struct kvm_ioapic' declared inside parameter list
include/linux/kvm_host.h:357: warning: its scope is only this definition or declaration, which is probably not what you want
[...]

Declaring struct kvm_ioapic should help.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
---
include/linux/kvm_host.h | 1 +
1 file changed, 1 insertion(+)

Index: kvm/include/linux/kvm_host.h
===================================================================
--- kvm.orig/include/linux/kvm_host.h
+++ kvm/include/linux/kvm_host.h
@@ -41,6 +41,7 @@

#define KVM_USERSPACE_IRQ_SOURCE_ID 0

+struct kvm_ioapic;
struct kvm_vcpu;
extern struct kmem_cache *kvm_vcpu_cache;