From: Liam R. Howlett Date: Fri, 19 Aug 2022 17:38:03 +0000 (-0400) Subject: mm/nommu: Add static inline to vma_mas_remove() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=f20cb098a375e8c64ed279a36cb6ced3dfe79d15;p=users%2Fjedix%2Flinux-maple.git mm/nommu: Add static inline to vma_mas_remove() Only used in nommu, so make it static Signed-off-by: Liam R. Howlett --- diff --git a/mm/nommu.c b/mm/nommu.c index 6c611a689ec0..6b412db345f9 100644 --- a/mm/nommu.c +++ b/mm/nommu.c @@ -550,7 +550,8 @@ void vma_mas_store(struct vm_area_struct *vma, struct ma_state *mas) mas_store_prealloc(mas, vma); } -void vma_mas_remove(struct vm_area_struct *vma, struct ma_state *mas) +static inline void vma_mas_remove(struct vm_area_struct *vma, + struct ma_state *mas) { mas->index = vma->vm_start; mas->last = vma->vm_end - 1;