From: Liam R. Howlett Date: Wed, 30 Sep 2020 16:27:32 +0000 (-0400) Subject: mm/mmap: Export find_vma_intersection to fix unresolved symbols in X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a5c2f6a789c8bd02270235eef7af59492729eca9;p=users%2Fjedix%2Flinux-maple.git mm/mmap: Export find_vma_intersection to fix unresolved symbols in modules kvm was complaining that the static function has become an extern. Signed-off-by: Liam R. Howlett --- diff --git a/mm/mmap.c b/mm/mmap.c index d9382b6de0402..87da407859755 100644 --- 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.