Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [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
@ 2025-05-20 10:02 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-05-20 10:02 UTC (permalink / raw)
  To: David Hildenbrand; +Cc: llvm, oe-kbuild-all

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-05-20 10:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-20 10:02 [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 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox