From: Christian Borntraeger Subject: [PATCH] kvm: declare kvm_ioapic in kvm_host.h Date: Thu, 26 Feb 2009 13:39:36 +0100 Message-ID: <200902261339.36237.borntraeger@de.ibm.com> References: <1235553536-32690-1-git-send-email-sheng@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: Sheng Yang , Marcelo Tosatti , Gleb Natapov , kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from mtagate6.uk.ibm.com ([195.212.29.139]:33838 "EHLO mtagate6.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752834AbZBZMkl (ORCPT ); Thu, 26 Feb 2009 07:40:41 -0500 Received: from d06nrmr1806.portsmouth.uk.ibm.com (d06nrmr1806.portsmouth.uk.ibm.com [9.149.39.193]) by mtagate6.uk.ibm.com (8.14.3/8.13.8) with ESMTP id n1QCdb43324330 for ; Thu, 26 Feb 2009 12:39:37 GMT Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by d06nrmr1806.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n1QCdbfC2723840 for ; Thu, 26 Feb 2009 12:39:37 GMT Received: from d06av01.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n1QCdaCD007057 for ; Thu, 26 Feb 2009 12:39:37 GMT In-Reply-To: <1235553536-32690-1-git-send-email-sheng@linux.intel.com> Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: 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 --- 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;