From: kernel test robot Date: Thu, 14 Apr 2022 19:16:52 +0000 (-0700) Subject: mm/shmem: vma_needs_copy can be static X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c263fef3d042c3f2a0de0b0b4127a286821b1dba;p=users%2Fjedix%2Flinux-maple.git mm/shmem: vma_needs_copy can be static mm/memory.c:1238:1: warning: symbol 'vma_needs_copy' was not declared. Should it be static? Link: https://lkml.kernel.org/r/Ylb0CGeFJlc4EzLk@7ec4ff11d4ae Fixes: 729c63ce2bbd ("mm/shmem: handle uffd-wp during fork()") Signed-off-by: kernel test robot Reported-by: kernel test robot Acked-by: Peter Xu Signed-off-by: Andrew Morton --- diff --git a/mm/memory.c b/mm/memory.c index 44397a8c345e..4a6288667713 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -1243,7 +1243,7 @@ copy_p4d_range(struct vm_area_struct *dst_vma, struct vm_area_struct *src_vma, * false when we can speed up fork() by allowing lazy page faults later until * when the child accesses the memory range. */ -bool +static bool vma_needs_copy(struct vm_area_struct *dst_vma, struct vm_area_struct *src_vma) { /*