Hi Matthew, I love your patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v6.2-rc1] [cannot apply to akpm-mm/mm-everything next-20221226] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Matthew-Wilcox-Oracle/mm-Remove-folio_pincount_ptr-and-head_compound_pincount/20230101-054709 patch link: https://lore.kernel.org/r/20221231214610.2800682-9-willy%40infradead.org patch subject: [PATCH 08/22] mm: Add folio_add_new_anon_rmap() config: powerpc-allnoconfig compiler: powerpc-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/intel-lab-lkp/linux/commit/0cc724aed3b147aba93541bbf32dba2844155330 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Matthew-Wilcox-Oracle/mm-Remove-folio_pincount_ptr-and-head_compound_pincount/20230101-054709 git checkout 0cc724aed3b147aba93541bbf32dba2844155330 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=powerpc SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All warnings (new ones prefixed by >>): mm/rmap.c:1292: warning: Function parameter or member 'folio' not described in 'folio_add_new_anon_rmap' >> mm/rmap.c:1292: warning: expecting prototype for page_add_new_anon_rmap(). Prototype was for folio_add_new_anon_rmap() instead vim +1292 mm/rmap.c ^1da177e4c3f41 Linus Torvalds 2005-04-16 1276 43d8eac44f28d3 Randy Dunlap 2008-03-19 1277 /** 40f2bbf71161fa David Hildenbrand 2022-05-09 1278 * page_add_new_anon_rmap - add mapping to a new anonymous page 9617d95e6e9ffd Nicholas Piggin 2006-01-06 1279 * @page: the page to add the mapping to 9617d95e6e9ffd Nicholas Piggin 2006-01-06 1280 * @vma: the vm area in which the mapping is added 9617d95e6e9ffd Nicholas Piggin 2006-01-06 1281 * @address: the user virtual address mapped 40f2bbf71161fa David Hildenbrand 2022-05-09 1282 * 40f2bbf71161fa David Hildenbrand 2022-05-09 1283 * If it's a compound page, it is accounted as a compound page. As the page 40f2bbf71161fa David Hildenbrand 2022-05-09 1284 * is new, it's assume to get mapped exclusively by a single process. 9617d95e6e9ffd Nicholas Piggin 2006-01-06 1285 * 9617d95e6e9ffd Nicholas Piggin 2006-01-06 1286 * Same as page_add_anon_rmap but must only be called on *new* pages. 9617d95e6e9ffd Nicholas Piggin 2006-01-06 1287 * This means the inc-and-test can be bypassed. c97a9e10eaee32 Nicholas Piggin 2007-05-16 1288 * Page does not have to be locked. 9617d95e6e9ffd Nicholas Piggin 2006-01-06 1289 */ 0cc724aed3b147 Matthew Wilcox (Oracle 2022-12-31 1290) void folio_add_new_anon_rmap(struct folio *folio, struct vm_area_struct *vma, 0cc724aed3b147 Matthew Wilcox (Oracle 2022-12-31 1291) unsigned long address) 9617d95e6e9ffd Nicholas Piggin 2006-01-06 @1292 { d8dd5e979d09c7 Hugh Dickins 2022-11-09 1293 int nr; d281ee61451835 Kirill A. Shutemov 2016-01-15 1294 81d1b09c6be66a Sasha Levin 2014-10-09 1295 VM_BUG_ON_VMA(address < vma->vm_start || address >= vma->vm_end, vma); 0cc724aed3b147 Matthew Wilcox (Oracle 2022-12-31 1296) __folio_set_swapbacked(folio); d8dd5e979d09c7 Hugh Dickins 2022-11-09 1297 0cc724aed3b147 Matthew Wilcox (Oracle 2022-12-31 1298) if (likely(!folio_test_large(folio))) { d8dd5e979d09c7 Hugh Dickins 2022-11-09 1299 /* increment count (starts at -1) */ 0cc724aed3b147 Matthew Wilcox (Oracle 2022-12-31 1300) atomic_set(&folio->_mapcount, 0); d8dd5e979d09c7 Hugh Dickins 2022-11-09 1301 nr = 1; d8dd5e979d09c7 Hugh Dickins 2022-11-09 1302 } else { 53f9263baba69f Kirill A. Shutemov 2016-01-15 1303 /* increment count (starts at -1) */ 0cc724aed3b147 Matthew Wilcox (Oracle 2022-12-31 1304) atomic_set(&folio->_entire_mapcount, 0); 0cc724aed3b147 Matthew Wilcox (Oracle 2022-12-31 1305) atomic_set(&folio->_nr_pages_mapped, COMPOUND_MAPPED); 0cc724aed3b147 Matthew Wilcox (Oracle 2022-12-31 1306) nr = folio_nr_pages(folio); 0cc724aed3b147 Matthew Wilcox (Oracle 2022-12-31 1307) __lruvec_stat_mod_folio(folio, NR_ANON_THPS, nr); d281ee61451835 Kirill A. Shutemov 2016-01-15 1308 } d8dd5e979d09c7 Hugh Dickins 2022-11-09 1309 0cc724aed3b147 Matthew Wilcox (Oracle 2022-12-31 1310) __lruvec_stat_mod_folio(folio, NR_ANON_MAPPED, nr); 0cc724aed3b147 Matthew Wilcox (Oracle 2022-12-31 1311) __page_set_anon_rmap(&folio->page, vma, address, 1); 9617d95e6e9ffd Nicholas Piggin 2006-01-06 1312 } 9617d95e6e9ffd Nicholas Piggin 2006-01-06 1313 -- 0-DAY CI Kernel Test Service https://01.org/lkp