Skip to contentSkip to conversation

mm/damon/vaddr.c:891:21: error: too few arguments to function 'damos_va_invalid_folio'; expected 2, have 1

PATCH kernel test robot 2 participants 2 messages Nov 1 DAMON

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
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/[email protected]/config)
compiler: csky-linux-gcc (GCC) 15.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261101/[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/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

maintainer
#1 lore raw
Quoted 14 lines · On Sun, 01 Nov 2026 04:00:38 +0100 kernel test robot <[email protected]> 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/[email protected]/config)
compiler: csky-linux-gcc (GCC) 15.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261101/[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 7 lines

mm/damon/vaddr.c: In function 'damos_va_migrate_pmd_entry':

Quoted 1 line
Quoted 1 line

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

[...]