The patch titled Subject: mm/mremap: fix 'move_normal_pmd' unused function warning has been added to the -mm tree. Its filename is mm-speed-up-mremap-by-20x-on-large-regions-v5-fix.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-speed-up-mremap-by-20x-on-large-regions-v5-fix.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-speed-up-mremap-by-20x-on-large-regions-v5-fix.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: "Joel Fernandes (Google)" <joel@xxxxxxxxxxxxxxxxx> Subject: mm/mremap: fix 'move_normal_pmd' unused function warning The move_normal_pmd function may not be used on architectures that don't enable HAVE_MOVE_PMD. This has shown to cause unused function warnings on those architectures. Lets not define it for those cases. Link: http://lkml.kernel.org/r/20181108224457.GB209347@xxxxxxxxxx Signed-off-by: Joel Fernandes (Google) <joel@xxxxxxxxxxxxxxxxx> Reported-by: Will Deacon <will.deacon@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/mremap.c | 2 ++ 1 file changed, 2 insertions(+) --- a/mm/mremap.c~mm-speed-up-mremap-by-20x-on-large-regions-v5-fix +++ a/mm/mremap.c @@ -191,6 +191,7 @@ static void move_ptes(struct vm_area_str drop_rmap_locks(vma); } +#ifdef CONFIG_HAVE_MOVE_PMD static bool move_normal_pmd(struct vm_area_struct *vma, unsigned long old_addr, unsigned long new_addr, unsigned long old_end, pmd_t *old_pmd, pmd_t *new_pmd) @@ -234,6 +235,7 @@ static bool move_normal_pmd(struct vm_ar return true; } +#endif unsigned long move_page_tables(struct vm_area_struct *vma, unsigned long old_addr, struct vm_area_struct *new_vma, _ Patches currently in -mm which might be from joel@xxxxxxxxxxxxxxxxx are mm-treewide-remove-unused-address-argument-from-pte_alloc-functions-v2.patch mm-speed-up-mremap-by-20x-on-large-regions-v5.patch mm-speed-up-mremap-by-20x-on-large-regions-v5-fix.patch mm-select-have_move_pmd-in-x86-for-faster-mremap.patch