]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm/mmap: Export find_vma_intersection to fix unresolved symbols in
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Wed, 30 Sep 2020 16:27:32 +0000 (12:27 -0400)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 30 Oct 2020 19:12:43 +0000 (15:12 -0400)
modules

kvm was complaining that the static function has become an extern.

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
mm/mmap.c

index d9382b6de0402f81e3f9a81f87064f4af281ea13..87da407859755dec4c155b72f89752a7029e5550 100644 (file)
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -2109,22 +2109,23 @@ EXPORT_SYMBOL(get_unmapped_area);
  * Returns: The VMA associated with the @start or the next VMA within the range.
  */
 struct vm_area_struct *find_vma_intersection(struct mm_struct *mm,
-                                            unsigned long addr,
-                                            unsigned long end)
+                                            unsigned long start_addr,
+                                            unsigned long end_addr)
 {
        struct vm_area_struct *vma;
 
        /* Check the cache first. */
-       vma = vmacache_find(mm, addr);
+       vma = vmacache_find(mm, start_addr);
        if (likely(vma))
                return vma;
 
-       vma = mt_find(&mm->mm_mt, &addr, end - 1);
+       vma = mt_find(&mm->mm_mt, &start_addr, end_addr - 1);
        if (vma)
-               vmacache_update(addr, vma);
+               vmacache_update(start_addr, vma);
 
        return vma;
 }
+EXPORT_SYMBOL(find_vma_intersection);
 
 /**
  * find_vma() - Find the VMA for a given address, or the next vma.