From patchwork Tue May 26 11:52:51 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 25995 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n4QBs6cc010859 for ; Tue, 26 May 2009 11:54:06 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754692AbZEZLyA (ORCPT ); Tue, 26 May 2009 07:54:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754663AbZEZLx7 (ORCPT ); Tue, 26 May 2009 07:53:59 -0400 Received: from gecko.sbs.de ([194.138.37.40]:22695 "EHLO gecko.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754446AbZEZLx6 (ORCPT ); Tue, 26 May 2009 07:53:58 -0400 Received: from mail2.sbs.de (localhost [127.0.0.1]) by gecko.sbs.de (8.12.11.20060308/8.12.11) with ESMTP id n4QBrf1A030464; Tue, 26 May 2009 13:53:43 +0200 Received: from [139.25.109.167] (mchn012c.ww002.siemens.net [139.25.109.167] (may be forged)) by mail2.sbs.de (8.12.11.20060308/8.12.11) with ESMTP id n4QBrequ008765; Tue, 26 May 2009 13:53:40 +0200 From: Jan Kiszka Subject: [PATCH 2/8] kvm-kmod: Include asm/uaccess.h on pre-2.6.18 kernels To: Avi Kivity Cc: kvm@vger.kernel.org Date: Tue, 26 May 2009 13:52:51 +0200 Message-ID: <20090526115251.3362.76198.stgit@mchn012c.ww002.siemens.net> In-Reply-To: <20090526115251.3362.54734.stgit@mchn012c.ww002.siemens.net> References: <20090526115251.3362.54734.stgit@mchn012c.ww002.siemens.net> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Signed-off-by: Jan Kiszka --- external-module-compat-comm.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/external-module-compat-comm.h b/external-module-compat-comm.h index d473ae7..e2342db 100644 --- a/external-module-compat-comm.h +++ b/external-module-compat-comm.h @@ -302,7 +302,11 @@ static inline void pagefault_enable(void) #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18) +#include +#else #include +#endif /* vm ops ->fault() was introduced in 2.6.23. */ #include