mm/huge_memory.c:2546:67: error: too few arguments to function call, expected 4, have 3
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable head: ac6a52aad42728ef45e6972c403072fba5c524f4 commit: 5a7c0c5e349b6b13c1689fedd1a82073b4679418 [303/428] mm/hugetlb: delay anon folio rmap removal until after the TLB flush config: x86_64-kexec (https://download.01.org/0day-ci/archive/20261128/[email protected]/config) compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261128/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
>> mm/huge_memory.c:2546:67: error: too few arguments to function call, expected 4, have 3
2546 | else if (__tlb_remove_page_size(tlb, &folio->page, HPAGE_PMD_SIZE))
| ~~~~~~~~~~~~~~~~~~~~~~ ^
include/asm-generic/tlb.h:248:6: note: '__tlb_remove_page_size' declared here
248 | bool __tlb_remove_page_size(struct mmu_gather *tlb, struct page *page,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
249 | int page_size, bool delay_rmap);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~1 error generated.
vim +2546 mm/huge_memory.c
953c66c2b22a304 Aneesh Kumar K.V 2016-12-12 2503
c818150bf00b0b4 David Hildenbrand (Arm 2026-11-16 2504) static void zap_huge_pmd_folio(struct mmu_gather *tlb, struct vm_area_struct *vma,
c818150bf00b0b4 David Hildenbrand (Arm 2026-11-16 2505) pmd_t pmdval, struct folio *folio, bool is_present, bool *force_flush)
f87854c90910142 Lorenzo Stoakes (Oracle 2026-03-20 2506) {
63a940541358d09 Chris Mason 2026-10-31 2507 const bool is_device_private = pmd_is_device_private_entry(pmdval);
c818150bf00b0b4 David Hildenbrand (Arm 2026-11-16 2508) struct mm_struct *mm = tlb->mm;
c818150bf00b0b4 David Hildenbrand (Arm 2026-11-16 2509) bool delay_rmap = false;
f87854c90910142 Lorenzo Stoakes (Oracle 2026-03-20 2510)
f87854c90910142 Lorenzo Stoakes (Oracle 2026-03-20 2511) if (folio_test_anon(folio)) {
f87854c90910142 Lorenzo Stoakes (Oracle 2026-03-20 2512) add_mm_counter(mm, MM_ANONPAGES, -HPAGE_PMD_NR);
f87854c90910142 Lorenzo Stoakes (Oracle 2026-03-20 2513) } else {
f87854c90910142 Lorenzo Stoakes (Oracle 2026-03-20 2514) add_mm_counter(mm, mm_counter_file(folio),
f87854c90910142 Lorenzo Stoakes (Oracle 2026-03-20 2515) -HPAGE_PMD_NR);
f87854c90910142 Lorenzo Stoakes (Oracle 2026-03-20 2516)
c818150bf00b0b4 David Hildenbrand (Arm 2026-11-16 2517) if (is_present && pmd_dirty(pmdval)) {
fe6cf984939d8e1 Usama Arif 2026-08-19 2518 folio_mark_dirty(folio);
c818150bf00b0b4 David Hildenbrand (Arm 2026-11-16 2519) /*
c818150bf00b0b4 David Hildenbrand (Arm 2026-11-16 2520) * Remove rmap after the TLB flush if stale TLB entries
c818150bf00b0b4 David Hildenbrand (Arm 2026-11-16 2521) * could still be used to write to a mapping that
c818150bf00b0b4 David Hildenbrand (Arm 2026-11-16 2522) * supports writeback.
c818150bf00b0b4 David Hildenbrand (Arm 2026-11-16 2523) */
c818150bf00b0b4 David Hildenbrand (Arm 2026-11-16 2524) if (!tlb->fullmm && vma->vm_file &&
c818150bf00b0b4 David Hildenbrand (Arm 2026-11-16 2525) mapping_can_writeback(vma->vm_file->f_mapping))
c818150bf00b0b4 David Hildenbrand (Arm 2026-11-16 2526) delay_rmap = tlb_can_delay_rmap();
c818150bf00b0b4 David Hildenbrand (Arm 2026-11-16 2527) }
f87854c90910142 Lorenzo Stoakes (Oracle 2026-03-20 2528) if (is_present && pmd_young(pmdval) &&
f87854c90910142 Lorenzo Stoakes (Oracle 2026-03-20 2529) likely(vma_has_recency(vma)))
f87854c90910142 Lorenzo Stoakes (Oracle 2026-03-20 2530) folio_mark_accessed(folio);
f87854c90910142 Lorenzo Stoakes (Oracle 2026-03-20 2531) }
f87854c90910142 Lorenzo Stoakes (Oracle 2026-03-20 2532)
c818150bf00b0b4 David Hildenbrand (Arm 2026-11-16 2533) if (!is_present && !is_device_private)
c818150bf00b0b4 David Hildenbrand (Arm 2026-11-16 2534) return;
c818150bf00b0b4 David Hildenbrand (Arm 2026-11-16 2535)
e6a07d29b0a60f3 Chris Mason 2026-10-31 2536 /*
e6a07d29b0a60f3 Chris Mason 2026-10-31 2537 * Present and device private folios are rmappable. Remove the
e6a07d29b0a60f3 Chris Mason 2026-10-31 2538 * rmap after transferring young+dirty to the folio.
e6a07d29b0a60f3 Chris Mason 2026-10-31 2539 */
c818150bf00b0b4 David Hildenbrand (Arm 2026-11-16 2540) if (!delay_rmap)
e6a07d29b0a60f3 Chris Mason 2026-10-31 2541 folio_remove_rmap_pmd(folio, &folio->page, vma);
e6a07d29b0a60f3 Chris Mason 2026-10-31 2542
c818150bf00b0b4 David Hildenbrand (Arm 2026-11-16 2543) /* Device private folios are pinned and don't need a TLB flush. */
f87854c90910142 Lorenzo Stoakes (Oracle 2026-03-20 2544) if (is_device_private)
f87854c90910142 Lorenzo Stoakes (Oracle 2026-03-20 2545) folio_put(folio);
c818150bf00b0b4 David Hildenbrand (Arm 2026-11-16 @2546) else if (__tlb_remove_page_size(tlb, &folio->page, HPAGE_PMD_SIZE))
c818150bf00b0b4 David Hildenbrand (Arm 2026-11-16 2547) *force_flush = true;
c818150bf00b0b4 David Hildenbrand (Arm 2026-11-16 2548)
c818150bf00b0b4 David Hildenbrand (Arm 2026-11-16 2549) if (delay_rmap) {
c818150bf00b0b4 David Hildenbrand (Arm 2026-11-16 2550) tlb_flush_mmu_tlbonly(tlb);
c818150bf00b0b4 David Hildenbrand (Arm 2026-11-16 2551) folio_remove_rmap_pmd(folio, &folio->page, vma);
c818150bf00b0b4 David Hildenbrand (Arm 2026-11-16 2552) }
f87854c90910142 Lorenzo Stoakes (Oracle 2026-03-20 2553) }
f87854c90910142 Lorenzo Stoakes (Oracle 2026-03-20 2554) :::::: The code at line 2546 was first introduced by commit
:::::: c818150bf00b0b42ff02bffc6a2c36d4f0ff7a52 mm/huge_memory: flush dirty file PMDs before removing rmap
:::::: TO: David Hildenbrand (Arm) <[email protected]> :::::: CC: David Hildenbrand (Arm) <[email protected]>
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
Andrew Morton
maintainerQuoted 14 lines · On Sat, 28 Nov 2026 06:11:18 +0100 kernel test robot <[email protected]> wrote:
tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable head: ac6a52aad42728ef45e6972c403072fba5c524f4 commit: 5a7c0c5e349b6b13c1689fedd1a82073b4679418 [303/428] mm/hugetlb: delay anon folio rmap removal until after the TLB flush config: x86_64-kexec (https://download.01.org/0day-ci/archive/20261128/[email protected]/config) compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261128/[email protected]/reproduce)If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/All errors (new ones prefixed by >>):
Quoted 8 lines
Quoted 1 line
Quoted 1 line
mm/huge_memory.c:2546:67: error: too few arguments to function call, expected 4, have 32546 | else if (__tlb_remove_page_size(tlb, &folio->page, HPAGE_PMD_SIZE)) | ~~~~~~~~~~~~~~~~~~~~~~ ^ include/asm-generic/tlb.h:248:6: note: '__tlb_remove_page_size' declared here 248 | bool __tlb_remove_page_size(struct mmu_gather *tlb, struct page *page, | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 249 | int page_size, bool delay_rmap); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thanks. I've fixed all that up so perhaps there's some timing skew happening here.