]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm/mmap: Change do_mas_align_munmap() to static
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 22 Feb 2021 00:55:52 +0000 (19:55 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 22 Feb 2021 00:56:07 +0000 (19:56 -0500)
Add static to the declaration as reported by sparse

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

index c0852a0275cdadb0e0130efe1251ba86f9d81eda..52762e1a9787a52fc36d3d93cadc4245fced26c1 100644 (file)
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -2370,9 +2370,9 @@ static inline unsigned long detach_range(struct mm_struct *mm,
  *
  *
  */
-int do_mas_align_munmap(struct ma_state *mas, struct vm_area_struct *vma,
-                       struct mm_struct *mm, unsigned long start,
-                       unsigned long end, struct list_head *uf, bool downgrade)
+static int do_mas_align_munmap(struct ma_state *mas, struct vm_area_struct *vma,
+              struct mm_struct *mm, unsigned long start, unsigned long end,
+              struct list_head *uf, bool downgrade)
 {
        struct vm_area_struct *prev, *last;
        struct maple_tree mt_detach;