All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "David Hildenbrand (Arm)" <david@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>,
	mm-commits@vger.kernel.org
Subject: [akpm-mm:mm-unstable 303/428] mm/huge_memory.c:2546:67: error: too few arguments to function call, expected 4, have 3
Date: Sat, 28 Nov 2026 06:11:18 +0100	[thread overview]
Message-ID: <20261128060622.OMTGOfau-lkp@intel.com> (raw)

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/20261128060622.OMTGOfau-lkp@intel.com/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/20261128060622.OMTGOfau-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261128060622.OMTGOfau-lkp@intel.com/

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) <david@kernel.org>
:::::: CC: David Hildenbrand (Arm) <david@kernel.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


             reply	other threads:[~2026-11-28  5:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-28  5:11 kernel test robot [this message]
2026-11-28  5:48 ` [akpm-mm:mm-unstable 303/428] mm/huge_memory.c:2546:67: error: too few arguments to function call, expected 4, have 3 Andrew Morton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261128060622.OMTGOfau-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=david@kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=llvm@lists.linux.dev \
    --cc=mm-commits@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.