From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 14 Oct 2005 14:22:25 -0500 From: Robin Holt Subject: [Patch 2/3] Export get_one_pte_map. Message-ID: <20051014192225.GD14418@lnx-holt.americas.sgi.com> References: <20051014192111.GB14418@lnx-holt.americas.sgi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051014192111.GB14418@lnx-holt.americas.sgi.com> Sender: owner-linux-mm@kvack.org Return-Path: To: linux-ia64@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, hch@infradead.org, jgarzik@pobox.com, wli@holomorphy.com, Dave Hansen , Jack Steiner List-ID: Add an export of get_one_pte_map. Signed-off-by: Robin Holt Index: linux-2.6/mm/mremap.c =================================================================== --- linux-2.6.orig/mm/mremap.c 2005-09-28 15:05:56.000000000 -0500 +++ linux-2.6/mm/mremap.c 2005-10-14 11:32:11.276747477 -0500 @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -50,7 +51,7 @@ end: return pte; } -static pte_t *get_one_pte_map(struct mm_struct *mm, unsigned long addr) +pte_t *get_one_pte_map(struct mm_struct *mm, unsigned long addr) { pgd_t *pgd; pud_t *pud; @@ -70,6 +71,7 @@ static pte_t *get_one_pte_map(struct mm_ return pte_offset_map(pmd, addr); } +EXPORT_SYMBOL(get_one_pte_map); static inline pte_t *alloc_one_pte_map(struct mm_struct *mm, unsigned long addr) { Index: linux-2.6/include/linux/mm.h =================================================================== --- linux-2.6.orig/include/linux/mm.h 2005-10-12 11:21:54.701122262 -0500 +++ linux-2.6/include/linux/mm.h 2005-10-14 09:04:29.191902399 -0500 @@ -733,6 +733,7 @@ int FASTCALL(set_page_dirty(struct page int set_page_dirty_lock(struct page *page); int clear_page_dirty_for_io(struct page *page); +extern pte_t *get_one_pte_map(struct mm_struct *mm, unsigned long addr); extern unsigned long do_mremap(unsigned long addr, unsigned long old_len, unsigned long new_len, unsigned long flags, unsigned long new_addr); -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org