All of lore.kernel.org
 help / color / mirror / Atom feed
* [sj:damon/next 41/139] mm/damon/vaddr.c:891:21: error: too few arguments to function 'damos_va_invalid_folio'; expected 2, have 1
@ 2026-11-01  3:00 kernel test robot
  2026-11-01 16:01 ` SJ Park
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2026-11-01  3:00 UTC (permalink / raw)
  To: SJ Park; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sj/linux.git damon/next
head:   7004d750fdd0fe580091136ef098fba296e51863
commit: 046c68e46b042453c4cdbd909eb4dc448dde6325 [41/139] mm/damon/vaddr: use damos->last_applied for migrate action
config: csky-randconfig-2000-20261101 (https://download.01.org/0day-ci/archive/20261101/202611010354.GdEQgO22-lkp@intel.com/config)
compiler: csky-linux-gcc (GCC) 15.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261101/202611010354.GdEQgO22-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/202611010354.GdEQgO22-lkp@intel.com/

All errors (new ones prefixed by >>):

   mm/damon/vaddr.c: In function 'damos_va_migrate_pmd_entry':
>> mm/damon/vaddr.c:891:21: error: too few arguments to function 'damos_va_invalid_folio'; expected 2, have 1
     891 |                 if (damos_va_invalid_folio(folio))
         |                     ^~~~~~~~~~~~~~~~~~~~~~
   mm/damon/vaddr.c:840:20: note: declared here
     840 | static inline bool damos_va_invalid_folio(struct folio *folio,
         |                    ^~~~~~~~~~~~~~~~~~~~~~


vim +/damos_va_invalid_folio +891 mm/damon/vaddr.c

   877	
   878		start_pte = pte = pte_offset_map_lock(walk->mm, pmd, addr, &ptl);
   879		if (!pte)
   880			return 0;
   881	
   882		for (; addr < next; pte += nr, addr += nr * PAGE_SIZE) {
   883			unsigned long page_idx;
   884	
   885			nr = 1;
   886			ptent = ptep_get(pte);
   887	
   888			if (pte_none(ptent) || !pte_present(ptent))
   889				continue;
   890			folio = vm_normal_folio(walk->vma, addr, ptent);
 > 891			if (damos_va_invalid_folio(folio))
   892				continue;
   893			page_idx = folio_page_idx(folio, pte_page(ptent));
   894			nr = folio_nr_pages(folio) - page_idx;
   895			if (damos_va_filter_out(s, folio, walk->vma, addr, pte, NULL))
   896				continue;
   897			s->last_applied = folio;
   898			damos_va_migrate_dests_add(folio, walk->vma, addr, s,
   899					migration_lists);
   900		}
   901		pte_unmap_unlock(start_pte, ptl);
   902		return 0;
   903	}
   904	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [sj:damon/next 41/139] mm/damon/vaddr.c:891:21: error: too few arguments to function 'damos_va_invalid_folio'; expected 2, have 1
  2026-11-01  3:00 [sj:damon/next 41/139] mm/damon/vaddr.c:891:21: error: too few arguments to function 'damos_va_invalid_folio'; expected 2, have 1 kernel test robot
@ 2026-11-01 16:01 ` SJ Park
  0 siblings, 0 replies; 2+ messages in thread
From: SJ Park @ 2026-11-01 16:01 UTC (permalink / raw)
  To: kernel test robot; +Cc: SJ Park, oe-kbuild-all, damon

On Sun, 01 Nov 2026 04:00:38 +0100 kernel test robot <lkp@intel.com> wrote:

> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sj/linux.git damon/next
> head:   7004d750fdd0fe580091136ef098fba296e51863
> commit: 046c68e46b042453c4cdbd909eb4dc448dde6325 [41/139] mm/damon/vaddr: use damos->last_applied for migrate action
> config: csky-randconfig-2000-20261101 (https://download.01.org/0day-ci/archive/20261101/202611010354.GdEQgO22-lkp@intel.com/config)
> compiler: csky-linux-gcc (GCC) 15.3.0
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261101/202611010354.GdEQgO22-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/202611010354.GdEQgO22-lkp@intel.com/
> 
> All errors (new ones prefixed by >>):
> 
>    mm/damon/vaddr.c: In function 'damos_va_migrate_pmd_entry':
> >> mm/damon/vaddr.c:891:21: error: too few arguments to function 'damos_va_invalid_folio'; expected 2, have 1
>      891 |                 if (damos_va_invalid_folio(folio))
>          |                     ^~~~~~~~~~~~~~~~~~~~~~
>    mm/damon/vaddr.c:840:20: note: declared here
>      840 | static inline bool damos_va_invalid_folio(struct folio *folio,
>          |                    ^~~~~~~~~~~~~~~~~~~~~~

Thank you for this report, I just fixed this on my tree and pushed.


Thanks,
SJ

[...]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-01 16:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-01  3:00 [sj:damon/next 41/139] mm/damon/vaddr.c:891:21: error: too few arguments to function 'damos_va_invalid_folio'; expected 2, have 1 kernel test robot
2026-11-01 16:01 ` SJ Park

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.