From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernhard Kohl Subject: [PATCH] kvm: external module: support building against Windriver 2.0 (kernel 2.6.21) Date: Thu, 12 Mar 2009 17:37:18 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from main.gmane.org ([80.91.229.2]:59331 "EHLO ciao.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751952AbZCLRhb (ORCPT ); Thu, 12 Mar 2009 13:37:31 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LhoqX-0002hC-4w for kvm@vger.kernel.org; Thu, 12 Mar 2009 17:37:29 +0000 Received: from 192.100.130.229 ([192.100.130.229]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Mar 2009 17:37:29 +0000 Received: from bernhard.kohl by 192.100.130.229 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 12 Mar 2009 17:37:29 +0000 Sender: kvm-owner@vger.kernel.org List-ID: This is needed to compile kvm in a Windriver 2.0 distribution (kernel 2.6.21). This kernel has an include file marker.h, but trace_mark is not defined there. So the compat code in kernel/include-compat/linux/marker.h is not included. Signed-off-by: Bernhard Kohl --- kernel/external-module-compat-comm.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/kernel/external-module-compat-comm.h b/kernel/external-module-compat-comm.h index a14cea2..e40501e 100644 --- a/kernel/external-module-compat-comm.h +++ b/kernel/external-module-compat-comm.h @@ -25,6 +25,10 @@ # undef CONFIG_KVM_TRACE #endif +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,21) +#define trace_mark(args...) ((void)0) +#endif + /* * 2.6.16 does not have GFP_NOWAIT */ -- 1.6.0.6