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=64d0a7fa0efcb7becc21f6ed33dd26f2f6e071e8;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 8dd304f61910..30c0abcd470f 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;