From: kernel test robot <lkp@intel.com>
To: Lorenzo Stoakes <ljs@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [ljs:project/cow-context 17/18] mm/page_idle.c:105:16: error: use of undeclared identifier 'folio_lock_anon_vma_read'
Date: Thu, 07 May 2026 17:28:54 +0800 [thread overview]
Message-ID: <202605071744.yAZ3Fsvu-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/ljs/linux.git project/cow-context
head: e02aa02fef8128743869032cb20d26f752cd9154
commit: d91a1a12c5871a70ef97dc4725f0ca758f210524 [17/18] HACK, tbh: mm: add pure CoW context mode
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20260507/202605071744.yAZ3Fsvu-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260507/202605071744.yAZ3Fsvu-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/202605071744.yAZ3Fsvu-lkp@intel.com/
All errors (new ones prefixed by >>):
>> mm/page_idle.c:105:16: error: use of undeclared identifier 'folio_lock_anon_vma_read'
105 | .anon_lock = folio_lock_anon_vma_read,
| ^
1 error generated.
--
>> mm/damon/ops-common.c:175:16: error: use of undeclared identifier 'folio_lock_anon_vma_read'
175 | .anon_lock = folio_lock_anon_vma_read,
| ^
mm/damon/ops-common.c:239:16: error: use of undeclared identifier 'folio_lock_anon_vma_read'
239 | .anon_lock = folio_lock_anon_vma_read,
| ^
2 errors generated.
vim +/folio_lock_anon_vma_read +105 mm/page_idle.c
33c3fc71c8cfa3 Vladimir Davydov 2015-09-09 96
5acc17fd35e627 Kefeng Wang 2022-12-30 97 static void page_idle_clear_pte_refs(struct folio *folio)
33c3fc71c8cfa3 Vladimir Davydov 2015-09-09 98 {
33c3fc71c8cfa3 Vladimir Davydov 2015-09-09 99 /*
6d4675e6013578 Minchan Kim 2022-05-19 100 * Since rwc.try_lock is unused, rwc is effectively immutable, so we
6d4675e6013578 Minchan Kim 2022-05-19 101 * can make it static to save some cycles and stack.
33c3fc71c8cfa3 Vladimir Davydov 2015-09-09 102 */
6d4675e6013578 Minchan Kim 2022-05-19 103 static struct rmap_walk_control rwc = {
33c3fc71c8cfa3 Vladimir Davydov 2015-09-09 104 .rmap_one = page_idle_clear_pte_refs_one,
2f031c6f042cb8 Matthew Wilcox (Oracle 2022-01-29 @105) .anon_lock = folio_lock_anon_vma_read,
33c3fc71c8cfa3 Vladimir Davydov 2015-09-09 106 };
33c3fc71c8cfa3 Vladimir Davydov 2015-09-09 107
4aed23a2f8aaaa Matthew Wilcox (Oracle 2022-01-29 108) if (!folio_mapped(folio) || !folio_raw_mapping(folio))
33c3fc71c8cfa3 Vladimir Davydov 2015-09-09 109 return;
33c3fc71c8cfa3 Vladimir Davydov 2015-09-09 110
95b34d66480bbc Lokesh Gidra 2025-09-23 111 if (!folio_trylock(folio))
33c3fc71c8cfa3 Vladimir Davydov 2015-09-09 112 return;
33c3fc71c8cfa3 Vladimir Davydov 2015-09-09 113
84fbbe21894bb9 Matthew Wilcox (Oracle 2022-01-29 114) rmap_walk(folio, &rwc);
4aed23a2f8aaaa Matthew Wilcox (Oracle 2022-01-29 115) folio_unlock(folio);
33c3fc71c8cfa3 Vladimir Davydov 2015-09-09 116 }
33c3fc71c8cfa3 Vladimir Davydov 2015-09-09 117
:::::: The code at line 105 was first introduced by commit
:::::: 2f031c6f042cb8a9b221a8b6b80e69de5170f830 mm/rmap: Convert rmap_walk() to take a folio
:::::: TO: Matthew Wilcox (Oracle) <willy@infradead.org>
:::::: CC: Matthew Wilcox (Oracle) <willy@infradead.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-05-07 9:29 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=202605071744.yAZ3Fsvu-lkp@intel.com \
--to=lkp@intel.com \
--cc=ljs@kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox