break_ksm_pmd|pud_entry() is only used in ksm.c now, change them to static. Fixes: 16ee05ec4698 ("mm/ksm: convert break_ksm() to use walk_page_range_vma()") Signed-off-by: Yang Yingliang <yangyingliang@xxxxxxxxxx> --- mm/ksm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/ksm.c b/mm/ksm.c index 570a23a0e5d9..c35054311e18 100644 --- a/mm/ksm.c +++ b/mm/ksm.c @@ -420,7 +420,7 @@ static inline bool ksm_test_exit(struct mm_struct *mm) return atomic_read(&mm->mm_users) == 0; } -int break_ksm_pud_entry(pud_t *pud, unsigned long addr, unsigned long next, +static int break_ksm_pud_entry(pud_t *pud, unsigned long addr, unsigned long next, struct mm_walk *walk) { /* We only care about page tables to walk to a single base page. */ @@ -429,7 +429,7 @@ int break_ksm_pud_entry(pud_t *pud, unsigned long addr, unsigned long next, return 0; } -int break_ksm_pmd_entry(pmd_t *pmd, unsigned long addr, unsigned long next, +static int break_ksm_pmd_entry(pmd_t *pmd, unsigned long addr, unsigned long next, struct mm_walk *walk) { bool *ksm_page = walk->private; -- 2.25.1