lkml.org 
[lkml]   [2022]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[mingo-tip:sched/headers 1596/2356] fs/afs/internal.h:1540:25: error: 'filemap_dirty_folio' undeclared here (not in a function); did you mean 'filemap_get_folio'?
tree:   git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head: af93551cf39027d176f30b9beafc60a4c130998a
commit: 7e7c34dad109b0245ba45f78111ffae60c364e51 [1596/2356] headers/deps: writeback: Remove the <linux/writeback_api.h> header from <linux/writeback.h>
config: x86_64-randconfig-a006-20220418 (https://download.01.org/0day-ci/archive/20220419/202204191327.d4qQoDQb-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.2.0-19) 11.2.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=7e7c34dad109b0245ba45f78111ffae60c364e51
git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
git fetch --no-tags mingo-tip sched/headers
git checkout 7e7c34dad109b0245ba45f78111ffae60c364e51
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/bus/ drivers/crypto/ fs/

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 >>):

In file included from fs/afs/file.c:31:
>> fs/afs/internal.h:1540:25: error: 'filemap_dirty_folio' undeclared here (not in a function); did you mean 'filemap_get_folio'?
1540 | #define afs_dirty_folio filemap_dirty_folio
| ^~~~~~~~~~~~~~~~~~~
fs/afs/file.c:67:27: note: in expansion of macro 'afs_dirty_folio'
67 | .dirty_folio = afs_dirty_folio,
| ^~~~~~~~~~~~~~~
--
In file included from fs/ceph/super.c:30:
fs/ceph/cache.h: In function 'ceph_fscache_dirty_folio':
>> fs/ceph/cache.h:130:16: error: implicit declaration of function 'filemap_dirty_folio'; did you mean 'filemap_get_folio'? [-Werror=implicit-function-declaration]
130 | return filemap_dirty_folio(mapping, folio);
| ^~~~~~~~~~~~~~~~~~~
| filemap_get_folio
cc1: some warnings being treated as errors
--
>> fs/vboxsf/file.c:365:24: error: 'filemap_dirty_folio' undeclared here (not in a function); did you mean 'filemap_get_folio'?
365 | .dirty_folio = filemap_dirty_folio,
| ^~~~~~~~~~~~~~~~~~~
| filemap_get_folio


vim +1540 fs/afs/internal.h

08e0e7c82eeade David Howells 2007-04-26 1533
31143d5d515ece David Howells 2007-05-09 1534 /*
31143d5d515ece David Howells 2007-05-09 1535 * write.c
31143d5d515ece David Howells 2007-05-09 1536 */
c7f75ef33b6dcd David Howells 2020-02-06 1537 #ifdef CONFIG_AFS_FSCACHE
8fb72b4a76933a Matthew Wilcox (Oracle 2022-02-09 1538) bool afs_dirty_folio(struct address_space *, struct folio *);
c7f75ef33b6dcd David Howells 2020-02-06 1539 #else
8fb72b4a76933a Matthew Wilcox (Oracle 2022-02-09 @1540) #define afs_dirty_folio filemap_dirty_folio
c7f75ef33b6dcd David Howells 2020-02-06 1541 #endif
15b4650e55e06d Nicholas Piggin 2008-10-15 1542 extern int afs_write_begin(struct file *file, struct address_space *mapping,
15b4650e55e06d Nicholas Piggin 2008-10-15 1543 loff_t pos, unsigned len, unsigned flags,
15b4650e55e06d Nicholas Piggin 2008-10-15 1544 struct page **pagep, void **fsdata);
15b4650e55e06d Nicholas Piggin 2008-10-15 1545 extern int afs_write_end(struct file *file, struct address_space *mapping,
15b4650e55e06d Nicholas Piggin 2008-10-15 1546 loff_t pos, unsigned len, unsigned copied,
15b4650e55e06d Nicholas Piggin 2008-10-15 1547 struct page *page, void *fsdata);
31143d5d515ece David Howells 2007-05-09 1548 extern int afs_writepage(struct page *, struct writeback_control *);
31143d5d515ece David Howells 2007-05-09 1549 extern int afs_writepages(struct address_space *, struct writeback_control *);
50b5551d1719c8 Al Viro 2014-04-03 1550 extern ssize_t afs_file_write(struct kiocb *, struct iov_iter *);
02c24a82187d5a Josef Bacik 2011-07-16 1551 extern int afs_fsync(struct file *, loff_t, loff_t, int);
0722f186205976 Souptick Joarder 2018-08-23 1552 extern vm_fault_t afs_page_mkwrite(struct vm_fault *vmf);
4343d00872e1de David Howells 2017-11-02 1553 extern void afs_prune_wb_keys(struct afs_vnode *);
a42442dd736941 Matthew Wilcox (Oracle 2022-02-09 1554) int afs_launder_folio(struct folio *);
31143d5d515ece David Howells 2007-05-09 1555

:::::: The code at line 1540 was first introduced by commit
:::::: 8fb72b4a76933ae6f86725cc8e4a8190ba84d755 fscache: Convert fscache_set_page_dirty() to fscache_dirty_folio()

:::::: TO: Matthew Wilcox (Oracle) <willy@infradead.org>
:::::: CC: Matthew Wilcox (Oracle) <willy@infradead.org>

--
0-DAY CI Kernel Test Service
https://01.org/lkp

\
 
 \ /
  Last update: 2022-04-19 07:36    [W:0.033 / U:1.544 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site