From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: KVM won't compile on 2.6.29 Date: Thu, 11 Jun 2009 11:29:43 +0300 Message-ID: <4A30C077.8050303@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: kvm@vger.kernel.org To: Bike & Snow Return-path: Received: from mx2.redhat.com ([66.187.237.31]:45273 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754571AbZFKI3o (ORCPT ); Thu, 11 Jun 2009 04:29:44 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: Bike & Snow wrote: > Hello > > I've compiled and installed KVM on kernel 2.6.28-11. It worked perfec= tly. > I'm using Ubuntu 9.04. > > I'm now trying to compile on kernel 2.6.29-4. > > It fails on compiling the kernel module with this error message: > > /usr/src/kvm-kmod-devel-86/x86/iommu.c: In function =E2kvm_iommu_map_= pages=E2: > /usr/src/kvm-kmod-devel-86/x86/iommu.c:90: error: =E2IOMMU_CACHE=E2 > undeclared (first use in this function) > /usr/src/kvm-kmod-devel-86/x86/iommu.c:90: error: (Each undeclared > identifier is reported only once > /usr/src/kvm-kmod-devel-86/x86/iommu.c:90: error: for each function i= t > appears in.) > /usr/src/kvm-kmod-devel-86/x86/iommu.c: In function =E2kvm_assign_dev= ice=E2: > /usr/src/kvm-kmod-devel-86/x86/iommu.c:155: error: implicit > declaration of function =E2iommu_domain_has_cap=E2 > /usr/src/kvm-kmod-devel-86/x86/iommu.c:156: error: > =E2IOMMU_CAP_CACHE_COHERENCY=E2 undeclared (first use in this functio= n) > make[3]: *** [/usr/src/kvm-kmod-devel-86/x86/iommu.o] Error 1 > make[2]: *** [/usr/src/kvm-kmod-devel-86/x86] Error 2 > make[1]: *** [_module_/usr/src/kvm-kmod-devel-86] Error 2 > make[1]: Leaving directory `/usr/src/linux-headers-2.6.29-02062904-ge= neric' > make: *** [all] Error 2 > > > This happens if I compile with the kvm-86.tar.gz package or the > smaller module only kvm-kmod-devel-86.tar.gz package. > > I have kernel headers installed. I've also installed the source for > 2.6.29-4 (not necessary but tried it anyway). > > Any ideas? > > =20 This is already fixed in git. --=20 error compiling committee.c: too many arguments to function