From 6bb75e49c0c06432721b08df58ab3c137b949132 Mon Sep 17 00:00:00 2001 From: "Liam R. Howlett" Date: Tue, 23 Feb 2021 10:51:13 -0500 Subject: [PATCH] mm: Move mm_populate_vma to internal header. mm_populate_vma is only internal to mm code Signed-off-by: Liam R. Howlett --- include/linux/mm.h | 4 ---- mm/internal.h | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) 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. -- 2.50.1