]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm/nommu: Add static inline to vma_mas_remove()
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 19 Aug 2022 17:38:03 +0000 (13:38 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 19 Aug 2022 17:38:03 +0000 (13:38 -0400)
Only used in nommu, so make it static

Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
mm/nommu.c

index 6c611a689ec08cb047eb959bd271245392e4744b..6b412db345f9367e27f6734778006453876e3e0a 100644 (file)
@@ -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;