Skip to contentSkip to conversation

FRV: remove excess argument passed to expand_stack()

PATCH New David Howells 1 participant 1 message Jan 5, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 FRV: remove excess argument passed to expand_stack()

The attached patch removes the excess argument being passed to expand_stack() as it isn't needed in -bk8.

---
warthog>diffstat frv-expstack-2610bk8.diff

 fault.c |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)
arch/frv/mm/fault.c renamed from warthog/kernels/linux-2.6.10-bk8/arch/frv/mm/fault.c +2 -7
diff -uNrp /warthog/kernels/linux-2.6.10-bk8/arch/frv/mm/fault.c linux-2.6.10-bk8-frv/arch/frv/mm/fault.c
@@ -32,7 +32,7 @@
  */
 asmlinkage void do_page_fault(int datammu, unsigned long esr0, unsigned long ear0)
 {
-	struct vm_area_struct *vma, *prev_vma;
+	struct vm_area_struct *vma;
 	struct mm_struct *mm;
 	unsigned long _pme, lrai, lrad, fixup;
 	siginfo_t info;
@@ -120,12 +120,7 @@ asmlinkage void do_page_fault(int datamm
 		}
 	}
 
-	/* find_vma_prev is just a bit slower, because it cannot use
-	 * the mmap_cache, so we run it only in the growsdown slow
-	 * path and we leave find_vma in the fast path.
-	 */
-	find_vma_prev(current->mm, ear0, &prev_vma);
-	if (expand_stack(vma, ear0, prev_vma))
+	if (expand_stack(vma, ear0))
 		goto bad_area;
 
 /*