From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Duffy Subject: Re: [ANNOUNCE] kvm-70 release Date: Wed, 18 Jun 2008 11:35:58 -0500 Message-ID: References: <48572C32.50009@qumranet.com> <4857A917.4040406@lfarkas.org> <485918B1.6080103@lfarkas.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from main.gmane.org ([80.91.229.2]:51376 "EHLO ciao.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750999AbYFRQgL (ORCPT ); Wed, 18 Jun 2008 12:36:11 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1K90di-0008Vi-M6 for kvm@vger.kernel.org; Wed, 18 Jun 2008 16:36:06 +0000 Received: from rrcs-71-41-149-67.sw.biz.rr.com ([71.41.149.67]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Jun 2008 16:36:06 +0000 Received: from Charles_Duffy by rrcs-71-41-149-67.sw.biz.rr.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Jun 2008 16:36:06 +0000 In-Reply-To: <485918B1.6080103@lfarkas.org> Sender: kvm-owner@vger.kernel.org List-ID: Farkas Levente wrote: > kvm-70 do not compile on centos-5 kernel-2.6.18-53.1.21.el5 Easy enough to work around, as kallsyms_lookup_name is only used in one place: diff -ru kvm-70/kernel/external-module-compat.h kvm-70.new/kernel/external-module-compat.h --- kvm-70/kernel/external-module-compat.h 2008-06-16 13:25:16.000000000 -0500 +++ kvm-70.new/kernel/external-module-compat.h 2008-06-17 12:03:23.000000000 -0500 @@ -663,7 +663,7 @@ const enum hrtimer_mode mode); extern int (*hrtimer_cancel_p)(struct hrtimer *timer); -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19) && defined(CONFIG_KALLSYMS) +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19) && defined(CONFIG_KALLSYMS) && 0 static inline void hrtimer_kallsyms_resolve(void) { hrtimer_init_p = (void *) kallsyms_lookup_name("hrtimer_init");