From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrea Arcangeli Subject: fastcall removal Date: Fri, 15 Feb 2008 18:11:11 +0100 Message-ID: <20080215171110.GF11732@v2.random> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Avi Kivity To: kvm-devel@lists.sourceforge.net Return-path: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces@lists.sourceforge.net Errors-To: kvm-devel-bounces@lists.sourceforge.net List-Id: kvm.vger.kernel.org This allows compiling the external module against linux.git (fastcall has finally become the default and only choice). Signed-off-by: Andrea Arcangeli diff --git a/kernel/external-module-compat.h b/kernel/external-module-compat.h index 5611c12..52b745c 100644 --- a/kernel/external-module-compat.h +++ b/kernel/external-module-compat.h @@ -686,3 +686,9 @@ static inline struct page *__kvm_vm_fault(struct vm_area_struct *vma, #endif +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25) +#ifndef FASTCALL +#define FASTCALL(x) x +#define fastcall +#endif +#endif ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/