[Patch 2/3] Export get_one_pte_map.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add an export of get_one_pte_map.

Signed-off-by: Robin Holt <[email protected]>


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);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux