From patchwork Mon Nov 9 17:22:20 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael S. Tsirkin" X-Patchwork-Id: 58815 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 nA9HRUh1010474 for ; Mon, 9 Nov 2009 17:27:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755430AbZKIRZW (ORCPT ); Mon, 9 Nov 2009 12:25:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755765AbZKIRZU (ORCPT ); Mon, 9 Nov 2009 12:25:20 -0500 Received: from mx1.redhat.com ([209.132.183.28]:50528 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755778AbZKIRZR (ORCPT ); Mon, 9 Nov 2009 12:25:17 -0500 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nA9HOqKi024385; Mon, 9 Nov 2009 12:24:52 -0500 Received: from redhat.com (vpn1-7-12.ams2.redhat.com [10.36.7.12]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with SMTP id nA9HOlFj005881; Mon, 9 Nov 2009 12:24:48 -0500 Date: Mon, 9 Nov 2009 19:22:20 +0200 From: "Michael S. Tsirkin" To: netdev@vger.kernel.org, virtualization@lists.linux-foundation.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, mingo@elte.hu, linux-mm@kvack.org, akpm@linux-foundation.org, hpa@zytor.com, gregory.haskins@gmail.com, Rusty Russell , s.hetze@linux-ag.com, Daniel Walker , Eric Dumazet Subject: [PATCHv9 2/3] mm: export use_mm/unuse_mm to modules Message-ID: <20091109172220.GC4724@redhat.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.19 (2009-01-05) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 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..0777654 100644 --- a/mm/mmu_context.c +++ b/mm/mmu_context.c @@ -5,6 +5,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);