public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [davidhildenbrand:folio_walk 1/10] mm/pagewalk.c:739:35: error: too many arguments to function call, expected single argument 'ptep', have 3 arguments
@ 2024-07-19 21:48 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-07-19 21:48 UTC (permalink / raw)
  To: David Hildenbrand; +Cc: llvm, oe-kbuild-all

tree:   https://github.com/davidhildenbrand/linux folio_walk
head:   22d5156a61b8f9783984a24990a8a40d3993a513
commit: d80a4597b25823d1bcf9d253452fcbcbef4d5c68 [1/10] mm/pagewalk: introduce folio_walk_start() + folio_walk_end()
config: i386-buildonly-randconfig-001-20240720 (https://download.01.org/0day-ci/archive/20240720/202407200547.1AzxjkST-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240720/202407200547.1AzxjkST-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/202407200547.1AzxjkST-lkp@intel.com/

All errors (new ones prefixed by >>):

>> mm/pagewalk.c:739:35: error: too many arguments to function call, expected single argument 'ptep', have 3 arguments
     739 |                 pte = huge_ptep_get(vma->vm_mm, addr, ptep);
         |                       ~~~~~~~~~~~~~             ^~~~~~~~~~
   include/asm-generic/hugetlb.h:147:21: note: 'huge_ptep_get' declared here
     147 | static inline pte_t huge_ptep_get(pte_t *ptep)
         |                     ^             ~~~~~~~~~~~
   1 error generated.


vim +/ptep +739 mm/pagewalk.c

   723	
   724	static struct folio *folio_walk_start_hugetlb(struct vm_area_struct *vma,
   725			unsigned long addr, struct folio_walk *fw,
   726			folio_walk_flags_t flags)
   727	{
   728	#ifdef CONFIG_HUGETLB_PAGE
   729		struct hstate *h = hstate_vma(vma);
   730		unsigned long hmask = huge_page_mask(h);
   731		unsigned long sz = huge_page_size(h);
   732		struct page *page;
   733		pte_t *ptep, pte;
   734		spinlock_t *ptl;
   735	
   736		ptep = hugetlb_walk(vma, addr & hmask, sz);
   737		if (ptep) {
   738			ptl = huge_pte_lock(hstate_vma(vma), vma->vm_mm, ptep);
 > 739			pte = huge_ptep_get(vma->vm_mm, addr, ptep);
   740			if (pte_present(pte)) {
   741				page = pte_page(pte);
   742				goto found;
   743			} else if (!huge_pte_none(pte)) {
   744				swp_entry_t entry = pte_to_swp_entry(pte);
   745	
   746				if ((flags & FW_MIGRATION_ENTRIES) &&
   747				    is_migration_entry(entry)) {
   748					page = pfn_swap_entry_to_page(entry);
   749					goto found;
   750				}
   751			}
   752			spin_unlock(ptl);
   753		}
   754		hugetlb_vma_unlock_read(vma);
   755		return NULL;
   756	found:
   757		if (sz < PMD_SIZE)
   758			fw->level = FW_LEVEL_PTE;
   759		else if (sz < PUD_SIZE)
   760			fw->level = FW_LEVEL_PMD;
   761		else
   762			fw->level = FW_LEVEL_PUD;
   763		fw->ptep = ptep;
   764		fw->pte = pte;
   765		return __folio_walk_fill(fw, page, addr & (sz - 1), vma, ptl);
   766	#endif /* CONFIG_HUGETLB_PAGE */
   767		return NULL;
   768	}
   769	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-07-19 21:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-19 21:48 [davidhildenbrand:folio_walk 1/10] mm/pagewalk.c:739:35: error: too many arguments to function call, expected single argument 'ptep', have 3 arguments kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox