patch-2.4.7 linux/arch/mips/mm/umap.c

Next file: linux/arch/mips64/Makefile
Previous file: linux/arch/mips/mm/sb1.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.6/linux/arch/mips/mm/umap.c linux/arch/mips/mm/umap.c
@@ -1,6 +1,4 @@
 /*
- * arch/mips/mm/umap.c
- *
  * (C) Copyright 1994 Linus Torvalds
  *
  * Changes:
@@ -21,6 +19,7 @@
 #include <linux/shm.h>
 #include <linux/errno.h>
 #include <linux/mman.h>
+#include <linux/module.h>
 #include <linux/string.h>
 #include <linux/vmalloc.h>
 #include <linux/swap.h>
@@ -106,6 +105,8 @@
 	up_write (&task->mm->mmap_sem);
 }
 
+EXPORT_SYMBOL(remove_mapping);
+
 void *vmalloc_uncached (unsigned long size)
 {
 	return __vmalloc (size, GFP_KERNEL | __GFP_HIGHMEM,
@@ -180,7 +181,7 @@
 		end = PGDIR_SIZE;
 	vaddr -= address;
 	do {
-		pte_t * pte = pte_alloc(pmd, address);
+		pte_t * pte = pte_alloc(current->mm, pmd, address);
 		if (!pte)
 			return -ENOMEM;
 		vmap_pte_range(pte, address, end - address, address + vaddr);
@@ -202,7 +203,7 @@
 	dir = pgd_offset(current->mm, from);
 	flush_cache_range(current->mm, beg, end);
 	while (from < end) {
-		pmd_t *pmd = pmd_alloc(dir, from);
+		pmd_t *pmd = pmd_alloc(current->mm, dir, from);
 		error = -ENOMEM;
 		if (!pmd)
 			break;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)