From: Liam R. Howlett Date: Tue, 23 Feb 2021 15:51:13 +0000 (-0500) Subject: mm: Move mm_populate_vma to internal header. X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6bb75e49c0c06432721b08df58ab3c137b949132;p=users%2Fjedix%2Flinux-maple.git mm: Move mm_populate_vma to internal header. mm_populate_vma is only internal to mm code Signed-off-by: Liam R. Howlett --- diff --git a/include/linux/mm.h b/include/linux/mm.h index dab8407d6716..5afa228f04a9 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -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 */ diff --git a/mm/internal.h b/mm/internal.h index c00c8423789e..baf47fcb85e3 100644 --- a/mm/internal.h +++ b/mm/internal.h @@ -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.