From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FYSOO-00079d-5J for qemu-devel@nongnu.org; Tue, 25 Apr 2006 14:36:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FYSOL-000778-A8 for qemu-devel@nongnu.org; Tue, 25 Apr 2006 14:36:07 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYSOL-000775-5B for qemu-devel@nongnu.org; Tue, 25 Apr 2006 14:36:05 -0400 Received: from [165.139.139.1] (helo=mx.bhmsd.k12.in.us) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FYSQq-0000Or-VD for qemu-devel@nongnu.org; Tue, 25 Apr 2006 14:38:41 -0400 Received: from mail.bhmsd.k12.in.us (mail.bhmsd.k12.in.us [172.16.20.102]) by mx.bhmsd.k12.in.us (8.13.1/8.13.1) with ESMTP id k3PIZxAx028434 for ; Tue, 25 Apr 2006 14:35:59 -0400 From: Ben Dailey Content-Type: multipart/mixed; boundary="=-AblBHaVAqRvi3AIipFJK" Date: Tue, 25 Apr 2006 14:35:53 -0400 Message-Id: <1145990153.5329.2.camel@localhost.localdomain> Mime-Version: 1.0 Subject: [Qemu-devel] Patch for kqemu-1.3.0pre5 on Fedora Core 4 x86_64 Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --=-AblBHaVAqRvi3AIipFJK Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mx.bhmsd.k12.in.us id k3PIZxAx028434 Hello, I have just recently joined the list and thought I would share this simple patch to get kqemu-1.3.0pre5 to compile against the 2.6.16-1.2096_FC4smp kernel. Configure was run as "./configure --cc=3Dgcc32 --host-cc=3Dgcc". Before the patch the make output was as follows: make -C /lib/modules/2.6.16-1.2096_FC4smp/build M=3D`pwd` modules make[1]: Entering directory `/usr/src/kernels/2.6.16-1.2096_FC4-smp-x86_6= 4' CC [M] /usr/local/src/cvs/kqemu-1.3.0pre5_pre/kqemu-linux.o /usr/local/src/cvs/kqemu-1.3.0pre5_pre/kqemu-linux.c: In function =E2=80=98= kqemu_lock_user_page=E2=80=99: /usr/local/src/cvs/kqemu-1.3.0pre5_pre/kqemu-linux.c:80: error: =E2=80=98= mem_map=E2=80=99 undeclared (first use in this function) /usr/local/src/cvs/kqemu-1.3.0pre5_pre/kqemu-linux.c:80: error: (Each und= eclared identifier is reported only once /usr/local/src/cvs/kqemu-1.3.0pre5_pre/kqemu-linux.c:80: error: for each = function it appears in.) /usr/local/src/cvs/kqemu-1.3.0pre5_pre/kqemu-linux.c: In function =E2=80=98= kqemu_alloc_zeroed_page=E2=80=99: /usr/local/src/cvs/kqemu-1.3.0pre5_pre/kqemu-linux.c:107: error: =E2=80=98= mem_map=E2=80=99 undeclared (first use in this function) /usr/local/src/cvs/kqemu-1.3.0pre5_pre/kqemu-linux.c: In function =E2=80=98= kqemu_vmalloc_to_phys=E2=80=99: /usr/local/src/cvs/kqemu-1.3.0pre5_pre/kqemu-linux.c:147: error: =E2=80=98= mem_map=E2=80=99 undeclared (first use in this function) make[2]: *** [/usr/local/src/cvs/kqemu-1.3.0pre5_pre/kqemu-linux.o] Error= 1 make[1]: *** [_module_/usr/local/src/cvs/kqemu-1.3.0pre5_pre] Error 2 make[1]: Leaving directory `/usr/src/kernels/2.6.16-1.2096_FC4-smp-x86_64= ' make: *** [kqemu.ko] Error 2 --=20 Thank You, Ben Dailey bdailey@bhmsd.k12.in.us Asst. Technology Director Bluffton Harrison MSD www.bhmsd.k12.in.us --=-AblBHaVAqRvi3AIipFJK Content-Disposition: attachment; filename=kqemu-linux_042506.patch Content-Type: text/x-patch; name=kqemu-linux_042506.patch; charset=utf-8 Content-Transfer-Encoding: 7bit --- kqemu-1.3.0pre5_pre/kqemu-linux.c 2006-03-27 15:58:01.000000000 -0500 +++ kqemu-1.3.0pre5/kqemu-linux.c 2006-04-25 12:55:42.000000000 -0400 @@ -23,7 +23,8 @@ #error "Linux 2.4.19 or above needed" #endif -#ifndef page_to_pfn +/* The pfn_to_page() API appeared in 2.5.14 and changed to function during 2.6.x */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0) && !defined(pfn_to_page) #define page_to_pfn(page) ((page) - mem_map) #define pfn_to_page(pfn) (mem_map + (pfn)) #endif --=-AblBHaVAqRvi3AIipFJK--