[willy-pagecache:headers 17/18] fs/nfs/pnfs.c:1508:2: error: call to undeclared function 'filemap_fdatawait'; ISO C99 and later do not support implicit function declarations
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: git://git.infradead.org/users/willy/pagecache headers head: 33e73a1e8175a4735e962dec9465e64e85d0a63d commit: 7191691f80efdfec4c2f8d87da800a18b7753e08 [17/18] nfs: Remove pagemap.h from includes config: loongarch-defconfig (https://download.01.org/0day-ci/archive/20260814/[email protected]/config) compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 844a18e753e822736c9805ab779144b647a2c186) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260814/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All errors (new ones prefixed by >>): >> fs/nfs/pnfs.c:1508:2: error: call to undeclared function 'filemap_fdatawait'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1508 | filemap_fdatawait(inode->i_mapping); | ^ 1 error generated. -- >> fs/nfs/nfs42proc.c:398:15: error: call to undeclared function 'invalidate_inode_pages2_range'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 398 | WARN_ON_ONCE(invalidate_inode_pages2_range(mapping, pos >> PAGE_SHIFT, | ^ fs/nfs/nfs42proc.c:398:15: note: did you mean 'truncate_inode_pages_range'? include/linux/mm.h:4317:6: note: 'truncate_inode_pages_range' declared here 4317 | void truncate_inode_pages_range(struct address_space *mapping, loff_t lstart, | ^ 1 error generated. -- >> fs/nfsd/nfs4proc.c:2015:13: error: call to undeclared function 'filemap_check_wb_err'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 2015 | status = filemap_check_wb_err(dst->f_mapping, since); | ^ 1 error generated. -- >> fs/nfs/blocklayout/blocklayout.c:894:9: error: call to undeclared function 'page_cache_next_miss'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 894 | end = page_cache_next_miss(mapping, idx + 1, ULONG_MAX); | ^ 1 error generated. vim +/filemap_fdatawait +1508 fs/nfs/pnfs.c cbe8260369c9f8 Benny Halevy 2011-05-22 1491 240286725d8543 Trond Myklebust 2013-03-20 1492 int 240286725d8543 Trond Myklebust 2013-03-20 1493 pnfs_commit_and_return_layout(struct inode *inode) 240286725d8543 Trond Myklebust 2013-03-20 1494 { 240286725d8543 Trond Myklebust 2013-03-20 1495 struct pnfs_layout_hdr *lo; 240286725d8543 Trond Myklebust 2013-03-20 1496 int ret; 240286725d8543 Trond Myklebust 2013-03-20 1497 240286725d8543 Trond Myklebust 2013-03-20 1498 spin_lock(&inode->i_lock); 240286725d8543 Trond Myklebust 2013-03-20 1499 lo = NFS_I(inode)->layout; 240286725d8543 Trond Myklebust 2013-03-20 1500 if (lo == NULL) { 240286725d8543 Trond Myklebust 2013-03-20 1501 spin_unlock(&inode->i_lock); 240286725d8543 Trond Myklebust 2013-03-20 1502 return 0; 240286725d8543 Trond Myklebust 2013-03-20 1503 } 240286725d8543 Trond Myklebust 2013-03-20 1504 pnfs_get_layout_hdr(lo); 240286725d8543 Trond Myklebust 2013-03-20 1505 /* Block new layoutgets and read/write to ds */ 240286725d8543 Trond Myklebust 2013-03-20 1506 lo->plh_block_lgets++; 240286725d8543 Trond Myklebust 2013-03-20 1507 spin_unlock(&inode->i_lock); 240286725d8543 Trond Myklebust 2013-03-20 @1508 filemap_fdatawait(inode->i_mapping); 240286725d8543 Trond Myklebust 2013-03-20 1509 ret = pnfs_layoutcommit_inode(inode, true); 240286725d8543 Trond Myklebust 2013-03-20 1510 if (ret == 0) 240286725d8543 Trond Myklebust 2013-03-20 1511 ret = _pnfs_return_layout(inode); 240286725d8543 Trond Myklebust 2013-03-20 1512 spin_lock(&inode->i_lock); 240286725d8543 Trond Myklebust 2013-03-20 1513 lo->plh_block_lgets--; 240286725d8543 Trond Myklebust 2013-03-20 1514 spin_unlock(&inode->i_lock); 240286725d8543 Trond Myklebust 2013-03-20 1515 pnfs_put_layout_hdr(lo); 240286725d8543 Trond Myklebust 2013-03-20 1516 return ret; 240286725d8543 Trond Myklebust 2013-03-20 1517 } 240286725d8543 Trond Myklebust 2013-03-20 1518 :::::: The code at line 1508 was first introduced by commit :::::: 240286725d854331422cb15957f8d9bf2741d4e3 NFSv4.1: Add a helper pnfs_commit_and_return_layout :::::: TO: Trond Myklebust <[email protected]> :::::: CC: Trond Myklebust <[email protected]> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki