From patchwork Mon Oct 19 10:59:24 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 54735 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 n9JB4j93026049 for ; Mon, 19 Oct 2009 11:04:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756022AbZJSLEi (ORCPT ); Mon, 19 Oct 2009 07:04:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756021AbZJSLEi (ORCPT ); Mon, 19 Oct 2009 07:04:38 -0400 Received: from thoth.sbs.de ([192.35.17.2]:16723 "EHLO thoth.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755902AbZJSLEh (ORCPT ); Mon, 19 Oct 2009 07:04:37 -0400 Received: from mail1.siemens.de (localhost [127.0.0.1]) by thoth.sbs.de (8.12.11.20060308/8.12.11) with ESMTP id n9JB4Shr032520; Mon, 19 Oct 2009 13:04:28 +0200 Received: from [139.25.109.167] (mchn012c.ww002.siemens.net [139.25.109.167] (may be forged)) by mail1.siemens.de (8.12.11.20060308/8.12.11) with ESMTP id n9JB4Srp020780; Mon, 19 Oct 2009 13:04:28 +0200 From: Jan Kiszka Subject: [PATCH 04/12] Fix build without CONFIG_MMU_NOTIFIER To: Avi Kivity , Marcelo Tosatti Cc: kvm@vger.kernel.org Date: Mon, 19 Oct 2009 12:59:24 +0200 Message-ID: <20091019105924.3988.95640.stgit@mchn012c.ww002.siemens.net> In-Reply-To: <20091019105923.3988.42243.stgit@mchn012c.ww002.siemens.net> References: <20091019105923.3988.42243.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 diff --git a/external-module-compat-comm.h b/external-module-compat-comm.h index 8f56f11..fd3aab7 100644 --- a/external-module-compat-comm.h +++ b/external-module-compat-comm.h @@ -1004,3 +1004,9 @@ static inline unsigned int cpufreq_get(unsigned int cpu) #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28) int schedule_hrtimeout(ktime_t *expires, const enum hrtimer_mode mode); #endif + +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27) +#ifndef CONFIG_MMU_NOTIFIER +struct mmu_notifier {}; +#endif +#endif