Content-Type: multipart/mixed; boundary="===============0632715634523840747==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [RFC PATCH] mm/hugetlb: __unmap_hugepage_range() can be static Date: Fri, 16 Jul 2021 01:05:24 +0800 Message-ID: <20210715170524.GA48547@78ef4ef0cd6c> In-Reply-To: <20210714222450.48840-1-peterx@redhat.com> List-Id: --===============0632715634523840747== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable mm/hugetlb.c:4334:6: warning: symbol '__unmap_hugepage_range' was not decla= red. Should it be static? Reported-by: kernel test robot Signed-off-by: kernel test robot --- hugetlb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 924553aa8f789ad..4bdd637b0c29a95 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -4331,9 +4331,9 @@ int copy_hugetlb_page_range(struct mm_struct *dst, st= ruct mm_struct *src, return ret; } = -void __unmap_hugepage_range(struct mmu_gather *tlb, struct vm_area_struct = *vma, - unsigned long start, unsigned long end, - struct page *ref_page) +static void __unmap_hugepage_range(struct mmu_gather *tlb, struct vm_area_= struct *vma, + unsigned long start, unsigned long end, + struct page *ref_page) { struct mm_struct *mm =3D vma->vm_mm; unsigned long address; --===============0632715634523840747==--