All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: David Hildenbrand <david@redhat.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [davidhildenbrand:folio_walk 1/10] mm/pagewalk.c:739:35: error: too many arguments to function call, expected single argument 'ptep', have 3 arguments
Date: Sat, 20 Jul 2024 05:48:45 +0800	[thread overview]
Message-ID: <202407200547.1AzxjkST-lkp@intel.com> (raw)

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

                 reply	other threads:[~2024-07-19 21:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202407200547.1AzxjkST-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=david@redhat.com \
    --cc=llvm@lists.linux.dev \
    --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.