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:migration 18/22] mm/vmscan.c:1653:36: error: call to undeclared function '__folio_test_movable'; ISO C99 and later do not support implicit function declarations
Date: Tue, 20 May 2025 18:02:29 +0800 [thread overview]
Message-ID: <202505201714.DV7tq1ks-lkp@intel.com> (raw)
tree: https://github.com/davidhildenbrand/linux migration
head: 3cb1246117612eea7427990a681167665d573c5b
commit: df51097eb85022ebeee826550b5af38af7f3e124 [18/22] mm: stop using page->mapping for non-folio migration
config: hexagon-defconfig (https://download.01.org/0day-ci/archive/20250520/202505201714.DV7tq1ks-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250520/202505201714.DV7tq1ks-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/202505201714.DV7tq1ks-lkp@intel.com/
All errors (new ones prefixed by >>):
>> mm/vmscan.c:1653:36: error: call to undeclared function '__folio_test_movable'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1653 | !folio_test_dirty(folio) && !__folio_test_movable(folio) &&
| ^
1 error generated.
vim +/__folio_test_movable +1653 mm/vmscan.c
^1da177e4c3f41 Linus Torvalds 2005-04-16 1637
730ec8c01a2bd6 Maninder Singh 2020-06-03 1638 unsigned int reclaim_clean_pages_from_list(struct zone *zone,
b8cecb9376b9d3 Matthew Wilcox (Oracle 2022-06-17 1639) struct list_head *folio_list)
02c6de8d757cb3 Minchan Kim 2012-10-08 1640 {
02c6de8d757cb3 Minchan Kim 2012-10-08 1641 struct scan_control sc = {
02c6de8d757cb3 Minchan Kim 2012-10-08 1642 .gfp_mask = GFP_KERNEL,
02c6de8d757cb3 Minchan Kim 2012-10-08 1643 .may_unmap = 1,
02c6de8d757cb3 Minchan Kim 2012-10-08 1644 };
1f318a9b0dc399 Jaewon Kim 2020-06-03 1645 struct reclaim_stat stat;
730ec8c01a2bd6 Maninder Singh 2020-06-03 1646 unsigned int nr_reclaimed;
b8cecb9376b9d3 Matthew Wilcox (Oracle 2022-06-17 1647) struct folio *folio, *next;
b8cecb9376b9d3 Matthew Wilcox (Oracle 2022-06-17 1648) LIST_HEAD(clean_folios);
2d2b8d2b67713d Yu Zhao 2021-06-30 1649 unsigned int noreclaim_flag;
02c6de8d757cb3 Minchan Kim 2012-10-08 1650
b8cecb9376b9d3 Matthew Wilcox (Oracle 2022-06-17 1651) list_for_each_entry_safe(folio, next, folio_list, lru) {
b8cecb9376b9d3 Matthew Wilcox (Oracle 2022-06-17 1652) if (!folio_test_hugetlb(folio) && folio_is_file_lru(folio) &&
b8cecb9376b9d3 Matthew Wilcox (Oracle 2022-06-17 @1653) !folio_test_dirty(folio) && !__folio_test_movable(folio) &&
b8cecb9376b9d3 Matthew Wilcox (Oracle 2022-06-17 1654) !folio_test_unevictable(folio)) {
b8cecb9376b9d3 Matthew Wilcox (Oracle 2022-06-17 1655) folio_clear_active(folio);
b8cecb9376b9d3 Matthew Wilcox (Oracle 2022-06-17 1656) list_move(&folio->lru, &clean_folios);
02c6de8d757cb3 Minchan Kim 2012-10-08 1657 }
02c6de8d757cb3 Minchan Kim 2012-10-08 1658 }
02c6de8d757cb3 Minchan Kim 2012-10-08 1659
2d2b8d2b67713d Yu Zhao 2021-06-30 1660 /*
2d2b8d2b67713d Yu Zhao 2021-06-30 1661 * We should be safe here since we are only dealing with file pages and
2d2b8d2b67713d Yu Zhao 2021-06-30 1662 * we are not kswapd and therefore cannot write dirty file pages. But
2d2b8d2b67713d Yu Zhao 2021-06-30 1663 * call memalloc_noreclaim_save() anyway, just in case these conditions
2d2b8d2b67713d Yu Zhao 2021-06-30 1664 * change in the future.
2d2b8d2b67713d Yu Zhao 2021-06-30 1665 */
2d2b8d2b67713d Yu Zhao 2021-06-30 1666 noreclaim_flag = memalloc_noreclaim_save();
49fd9b6df54e61 Matthew Wilcox (Oracle 2022-09-02 1667) nr_reclaimed = shrink_folio_list(&clean_folios, zone->zone_pgdat, &sc,
7d709f49babc28 Gregory Price 2025-04-24 1668 &stat, true, NULL);
2d2b8d2b67713d Yu Zhao 2021-06-30 1669 memalloc_noreclaim_restore(noreclaim_flag);
2d2b8d2b67713d Yu Zhao 2021-06-30 1670
b8cecb9376b9d3 Matthew Wilcox (Oracle 2022-06-17 1671) list_splice(&clean_folios, folio_list);
2da9f6305f306f Nicholas Piggin 2020-11-13 1672 mod_node_page_state(zone->zone_pgdat, NR_ISOLATED_FILE,
2da9f6305f306f Nicholas Piggin 2020-11-13 1673 -(long)nr_reclaimed);
1f318a9b0dc399 Jaewon Kim 2020-06-03 1674 /*
1f318a9b0dc399 Jaewon Kim 2020-06-03 1675 * Since lazyfree pages are isolated from file LRU from the beginning,
1f318a9b0dc399 Jaewon Kim 2020-06-03 1676 * they will rotate back to anonymous LRU in the end if it failed to
1f318a9b0dc399 Jaewon Kim 2020-06-03 1677 * discard so isolated count will be mismatched.
1f318a9b0dc399 Jaewon Kim 2020-06-03 1678 * Compensate the isolated count for both LRU lists.
1f318a9b0dc399 Jaewon Kim 2020-06-03 1679 */
1f318a9b0dc399 Jaewon Kim 2020-06-03 1680 mod_node_page_state(zone->zone_pgdat, NR_ISOLATED_ANON,
1f318a9b0dc399 Jaewon Kim 2020-06-03 1681 stat.nr_lazyfree_fail);
1f318a9b0dc399 Jaewon Kim 2020-06-03 1682 mod_node_page_state(zone->zone_pgdat, NR_ISOLATED_FILE,
2da9f6305f306f Nicholas Piggin 2020-11-13 1683 -(long)stat.nr_lazyfree_fail);
1f318a9b0dc399 Jaewon Kim 2020-06-03 1684 return nr_reclaimed;
02c6de8d757cb3 Minchan Kim 2012-10-08 1685 }
02c6de8d757cb3 Minchan Kim 2012-10-08 1686
:::::: The code at line 1653 was first introduced by commit
:::::: b8cecb9376b9d3031cf62b476a0db087b6b01072 mm/vmscan: convert reclaim_clean_pages_from_list() to folios
:::::: TO: Matthew Wilcox (Oracle) <willy@infradead.org>
:::::: CC: akpm <akpm@linux-foundation.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-05-20 10:03 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=202505201714.DV7tq1ks-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox