]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm: Move mm_populate_vma to internal header.
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 23 Feb 2021 15:51:13 +0000 (10:51 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 23 Feb 2021 15:51:13 +0000 (10:51 -0500)
mm_populate_vma is only internal to mm code

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
include/linux/mm.h
mm/internal.h

index dab8407d67166c1d3d9796fbd7288ed6a85612b5..5afa228f04a9107f98b99a06e72878e62df97116 100644 (file)
@@ -2588,12 +2588,8 @@ static inline void mm_populate(unsigned long addr, unsigned long len)
        /* Ignore errors */
        (void) __mm_populate(addr, len, 1);
 }
-extern void mm_populate_vma(struct vm_area_struct *vma, unsigned long start,
-                           unsigned long end);
 #else
 static inline void mm_populate(unsigned long addr, unsigned long len) {}
-void mm_populate_vma(struct vm_area_struct *vma, unsigned long start,
-                    unsigned long end) {}
 #endif
 
 /* These take the mm semaphore themselves */
index c00c8423789ef22c9b0e9008ab02f41a8bbfc4e6..baf47fcb85e306cb4ba55d559a024f610ee3b177 100644 (file)
@@ -332,6 +332,10 @@ static inline bool is_data_mapping(vm_flags_t flags)
        return (flags & (VM_WRITE | VM_SHARED | VM_STACK)) == VM_WRITE;
 }
 
+/* mm/gup.c */
+extern void mm_populate_vma(struct vm_area_struct *vma, unsigned long start,
+                           unsigned long end);
+
 /* Maple tree operations using VMAs */
 /*
  * vma_mas_store() - Store a VMA in the maple tree.