[Patch 2/3] Export get_one_pte_map.

Robin Holt
2005-10-14T19:22:25Z

Add an export of get_one_pte_map.

Signed-off-by: Robin Holt <holt@sgi.com>

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 <linux/slab.h>
#include <linux/shm.h>
#include <linux/mman.h>
+#include <linux/module.h>
#include <linux/swap.h>
#include <linux/fs.h>
#include <linux/highmem.h>
@@ -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);