The patch titled Subject: mm/vmscan.c:3498: undefined reference to `pmdp_test_and_clear_young' has been added to the -mm mm-hotfixes-unstable branch. Its filename is mm-multi-gen-lru-use-pteppmdp_clear_young_notify-fix.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-multi-gen-lru-use-pteppmdp_clear_young_notify-fix.patch This patch will later appear in the mm-hotfixes-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm 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 via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: James Houghton <jthoughton@xxxxxxxxxx> Subject: mm/vmscan.c:3498: undefined reference to `pmdp_test_and_clear_young' Date: Fri, 25 Oct 2024 19:21:06 +0000 fix link-time error ld: mm/vmscan.o: in function `walk_pmd_range_locked': >> mm/vmscan.c:3498: undefined reference to `pmdp_test_and_clear_young' Link: https://lore.kernel.org/linux-mm/20241019012940.3656292-3-jthoughton@xxxxxxxxxx/ Link: https://lkml.kernel.org/r/20241025192106.957236-1-jthoughton@xxxxxxxxxx Reported-by: kernel test robot <lkp@xxxxxxxxx> Closes: https://lore.kernel.org/oe-kbuild-all/202410252141.djLwbAYF-lkp@xxxxxxxxx/ Signed-off-by: James Houghton <jthoughton@xxxxxxxxxx> Cc: Axel Rasmussen <axelrasmussen@xxxxxxxxxx> Cc: David Matlack <dmatlack@xxxxxxxxxx> Cc: David Rientjes <rientjes@xxxxxxxxxx> Cc: David Stevens <stevensd@xxxxxxxxxx> Cc: Oliver Upton <oliver.upton@xxxxxxxxx> Cc: Paolo Bonzini <pbonzini@xxxxxxxxxx> Cc: Sean Christopherson <seanjc@xxxxxxxxxx> Cc: Wei Xu <weixugc@xxxxxxxxxx> Cc: Yu Zhao <yuzhao@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/vmscan.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/mm/vmscan.c~mm-multi-gen-lru-use-pteppmdp_clear_young_notify-fix +++ a/mm/vmscan.c @@ -3480,7 +3480,10 @@ static void walk_pmd_range_locked(pud_t /* don't round down the first address */ addr = i ? (*first & PMD_MASK) + i * PMD_SIZE : *first; - if (pmd_present(pmd[i]) && !pmd_trans_huge(pmd[i])) { + if (!pmd_present(pmd[i])) + goto next; + + if (!pmd_trans_huge(pmd[i])) { if (!walk->force_scan && should_clear_pmd_young() && !mm_has_notifiers(args->mm)) pmdp_test_and_clear_young(vma, addr, pmd + i); _ Patches currently in -mm which might be from jthoughton@xxxxxxxxxx are mm-multi-gen-lru-use-pteppmdp_clear_young_notify-fix.patch mm-add-missing-mmu_notifier_clear_young-for-mmu_notifier.patch