From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: [PATCH] x86: Pick up local arch trace header (was: kvm-kmod 88 or git not working with 2.6.31) Date: Sat, 19 Sep 2009 09:13:37 +0200 Message-ID: <4AB484A1.2060404@web.de> References: <4AB43F9C.50000@cisco.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig1AC9EF5F73BEF1D26092AC41" Cc: kvm@vger.kernel.org To: Aidan Marks Return-path: Received: from fmmailgate03.web.de ([217.72.192.234]:37909 "EHLO fmmailgate03.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750770AbZISHQF (ORCPT ); Sat, 19 Sep 2009 03:16:05 -0400 In-Reply-To: <4AB43F9C.50000@cisco.com> Sender: kvm-owner@vger.kernel.org List-ID: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig1AC9EF5F73BEF1D26092AC41 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Aidan Marks wrote: > Hello >=20 > I am trying to compile kvm-kmod-devel-88.tar.gz with 2.6.31. Seems > there is a missing header file. >=20 >=20 > vger kvm-kmod-devel-88 # make >=20 >=20 > make -C /lib/modules/2.6.31-gentoo/build M=3D`pwd` \ >=20 >=20 > LINUXINCLUDE=3D"-I`pwd`/include -Iinclude \ >=20 >=20 > -Iarch/x86/include -I`pwd`/include-compat \ >=20 >=20 > -include include/linux/autoconf.h \ >=20 >=20 > -include `pwd`/x86/external-module-compat.h " \ >=20 >=20 > "$@" >=20 >=20 > make[1]: Entering directory `/usr/src/linux-2.6.31-gentoo' >=20 >=20 > LD /tmp/kvm-kmod-devel-88/x86/built-in.o >=20 >=20 > CC [M] /tmp/kvm-kmod-devel-88/x86/svm.o >=20 >=20 > CC [M] /tmp/kvm-kmod-devel-88/x86/vmx.o >=20 >=20 > CC [M] /tmp/kvm-kmod-devel-88/x86/vmx-debug.o >=20 >=20 > CC [M] /tmp/kvm-kmod-devel-88/x86/kvm_main.o >=20 >=20 > CC [M] /tmp/kvm-kmod-devel-88/x86/x86.o >=20 >=20 > In file included from /tmp/kvm-kmod-devel-88/x86/trace.h:355, >=20 >=20 > from /tmp/kvm-kmod-devel-88/x86/x86.c:83: >=20 >=20 > include/trace/define_trace.h:53:43: error: arch/x86/kvm/trace.h: No suc= h > file or directory >=20 > make[3]: *** [/tmp/kvm-kmod-devel-88/x86/x86.o] Error 1 >=20 >=20 > make[2]: *** [/tmp/kvm-kmod-devel-88/x86] Error 2 >=20 >=20 > make[1]: *** [_module_/tmp/kvm-kmod-devel-88] Error 2 >=20 >=20 > make[1]: Leaving directory `/usr/src/linux-2.6.31-gentoo' >=20 >=20 > make: *** [all] Error 2 >=20 > I also tried pulling from git via: >=20 > git clone git://git.kernel.org/pub/scm/virt/kvm/kvm-kmod.git > cd kvm-kmod > git submodule update --init > ./configure --kerneldir=3D/usr/src/linux > make sync > make >=20 > still the same error. >=20 > is there a patch for 2.6.31 support? This should fix it: ----------> This unbreaks 2.6.31 builds but also ensures that we always use the most recent one. Signed-off-by: Jan Kiszka --- include/arch/x86/kvm/trace.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) create mode 120000 include/arch/x86/kvm/trace.h diff --git a/include/arch/x86/kvm/trace.h b/include/arch/x86/kvm/trace.h new file mode 120000 index 0000000..170abca --- /dev/null +++ b/include/arch/x86/kvm/trace.h @@ -0,0 +1 @@ +../../../../x86/trace.h \ No newline at end of file --------------enig1AC9EF5F73BEF1D26092AC41 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkq0hKYACgkQniDOoMHTA+nZrwCfQ9MxRQBa/GSsyyay+gDyPEWg 4yIAn1W+rvucB7DsrYPjdxptaY6ydDyC =9yEO -----END PGP SIGNATURE----- --------------enig1AC9EF5F73BEF1D26092AC41--