]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm/mmap: change find_vma() to inline
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 12 Jan 2021 16:38:39 +0000 (11:38 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 12 Jan 2021 16:38:39 +0000 (11:38 -0500)
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
mm/mmap.c

index b4ed8be4899b8b87a775762d7c5cc48b8b21df85..ae0e27604a9cb2028b12437440ef884667dc4f61 100644 (file)
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -1842,7 +1842,7 @@ EXPORT_SYMBOL(find_vma_intersection);
  * Returns: The VMA associated with addr, or the next vma.
  * May return NULL in the case of no vma at addr or above.
  */
-struct vm_area_struct *find_vma(struct mm_struct *mm, unsigned long addr)
+inline struct vm_area_struct *find_vma(struct mm_struct *mm, unsigned long addr)
 {
        // Note find_vma_intersection will decrease 0 to underflow to ULONG_MAX
        return find_vma_intersection(mm, addr, 0);