From 530bc17f3f3aff473f272b4f340fdd08a9518be1 Mon Sep 17 00:00:00 2001 From: "Liam R. Howlett" Date: Tue, 12 Jan 2021 11:38:39 -0500 Subject: [PATCH] mm/mmap: change find_vma() to inline Signed-off-by: Liam R. Howlett --- mm/mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/mmap.c b/mm/mmap.c index b4ed8be4899b..ae0e27604a9c 100644 --- 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); -- 2.50.1