From patchwork Fri Oct 2 20:19:22 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gregory Haskins X-Patchwork-Id: 51431 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 n92KLUsm025887 for ; Fri, 2 Oct 2009 20:21:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758033AbZJBUTg (ORCPT ); Fri, 2 Oct 2009 16:19:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758037AbZJBUTg (ORCPT ); Fri, 2 Oct 2009 16:19:36 -0400 Received: from victor.provo.novell.com ([137.65.250.26]:58019 "EHLO victor.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757713AbZJBUTe (ORCPT ); Fri, 2 Oct 2009 16:19:34 -0400 Received: from dev.haskins.net (prv-ext-foundry1int.gns.novell.com [137.65.251.240]) by victor.provo.novell.com with ESMTP (TLS encrypted); Fri, 02 Oct 2009 14:19:23 -0600 Received: from dev.haskins.net (localhost [127.0.0.1]) by dev.haskins.net (Postfix) with ESMTP id 4A1D84641EB; Fri, 2 Oct 2009 16:19:22 -0400 (EDT) From: Gregory Haskins Subject: [PATCH v2 1/4] mm: export use_mm() and unuse_mm() to modules To: kvm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, ghaskins@novell.com Date: Fri, 02 Oct 2009 16:19:22 -0400 Message-ID: <20091002201922.4014.6918.stgit@dev.haskins.net> In-Reply-To: <20091002201159.4014.33268.stgit@dev.haskins.net> References: <20091002201159.4014.33268.stgit@dev.haskins.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/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);