From f20cb098a375e8c64ed279a36cb6ced3dfe79d15 Mon Sep 17 00:00:00 2001 From: "Liam R. Howlett" Date: Fri, 19 Aug 2022 13:38:03 -0400 Subject: [PATCH] mm/nommu: Add static inline to vma_mas_remove() Only used in nommu, so make it static Signed-off-by: Liam R. Howlett --- mm/nommu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.50.1