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

From: kernel test robot
Date: Mon Feb 14 2022 - 18:59:30 EST


tree: git://git.infradead.org/users/willy/pagecache fs-folio
head: 2a1113b30dfe1f84d065830fc837dfa8737ba380
commit: 117ba9cd89727cdc7262cb6088ea070ae1ef2a98 [44/58] fs: Convert trivial uses of __set_page_dirty_nobuffers to filemap_dirty_folio
config: um-i386_defconfig (https://download.01.org/0day-ci/archive/20220215/202202150745.y8wccCv3-lkp@xxxxxxxxx/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.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 fs-folio
git checkout 117ba9cd89727cdc7262cb6088ea070ae1ef2a98
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=um SUBARCH=i386 SHELL=/bin/bash

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

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, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx