[willy-pagecache:for-next 166/179] fs/hostfs/hostfs_kern.c:507:17: error: 'filemap_dirty_folio' undeclared here (not in a function); did you mean 'filemap_get_folio'?

kernel test robot
2022-03-15T08:58:30Z

tree: git://git.infradead.org/users/willy/pagecache for-next
head: af564d7369d44fbbe697a5f631fe3bba5ebecd59
commit: 821405cf3ebbd9a17baf9afce08b0562fba04056 [166/179] fs: Convert trivial uses of __set_page_dirty_nobuffers to filemap_dirty_folio
config: um-x86_64_defconfig (https://download.01.org/0day-ci/archive/20220315/202203151604.dZIG5fhk-lkp@intel.com/config)
compiler: gcc-9 (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0
reproduce (this is a W=1 build):
git remote add willy-pagecache git://git.infradead.org/users/willy/pagecache
git fetch --no-tags willy-pagecache for-next
git checkout 821405cf3ebbd9a17baf9afce08b0562fba04056
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=um SUBARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> fs/hostfs/hostfs_kern.c:507:17: error: 'filemap_dirty_folio' undeclared here (not in a function); did you mean 'filemap_get_folio'?
507 | .dirty_folio = filemap_dirty_folio,
| ^~~~~~~~~~~~~~~~~~~
| filemap_get_folio

vim +507 fs/hostfs/hostfs_kern.c

503
504 static const struct address_space_operations hostfs_aops = {
505 .writepage = hostfs_writepage,
506 .readpage = hostfs_readpage,
> 507 .dirty_folio = filemap_dirty_folio,
508 .write_begin = hostfs_write_begin,
509 .write_end = hostfs_write_end,
510 };
511

---
0-DAY CI Kernel Test Service