]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm/vmscan.c:3498: undefined reference to `pmdp_test_and_clear_young'
authorJames Houghton <jthoughton@google.com>
Fri, 25 Oct 2024 19:21:06 +0000 (19:21 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 1 Nov 2024 04:28:04 +0000 (21:28 -0700)
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@google.com/
Link: https://lkml.kernel.org/r/20241025192106.957236-1-jthoughton@google.com
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202410252141.djLwbAYF-lkp@intel.com/
Signed-off-by: James Houghton <jthoughton@google.com>
Cc: Axel Rasmussen <axelrasmussen@google.com>
Cc: David Matlack <dmatlack@google.com>
Cc: David Rientjes <rientjes@google.com>
Cc: David Stevens <stevensd@google.com>
Cc: Oliver Upton <oliver.upton@linux.dev>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Sean Christopherson <seanjc@google.com>
Cc: Wei Xu <weixugc@google.com>
Cc: Yu Zhao <yuzhao@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmscan.c

index dd711dbd93612644350f95bb4aac4e002a63857a..ddaaff67642e17325bd2447987c76ccc958ae6b7 100644 (file)
@@ -3480,7 +3480,10 @@ static void walk_pmd_range_locked(pud_t *pud, unsigned long addr, struct vm_area
                /* 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);