From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gregory Haskins Subject: [PATCH v2 1/4] mm: export use_mm() and unuse_mm() to modules Date: Fri, 02 Oct 2009 16:19:22 -0400 Message-ID: <20091002201922.4014.6918.stgit@dev.haskins.net> References: <20091002201159.4014.33268.stgit@dev.haskins.net> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: linux-kernel@vger.kernel.org, ghaskins@novell.com To: kvm@vger.kernel.org Return-path: In-Reply-To: <20091002201159.4014.33268.stgit@dev.haskins.net> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org We want to use these functions from withing KVM, which may be built as a module. Signed-off-by: Gregory Haskins --- mm/mmu_context.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/mm/mmu_context.c b/mm/mmu_context.c index ded9081..f31ba20 100644 --- a/mm/mmu_context.c +++ b/mm/mmu_context.c @@ -6,6 +6,7 @@ #include #include #include +#include #include @@ -37,6 +38,7 @@ void use_mm(struct mm_struct *mm) if (active_mm != mm) mmdrop(active_mm); } +EXPORT_SYMBOL_GPL(use_mm); /* * unuse_mm @@ -56,3 +58,4 @@ void unuse_mm(struct mm_struct *mm) enter_lazy_tlb(mm, tsk); task_unlock(tsk); } +EXPORT_SYMBOL_GPL(unuse_mm);