All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Matthew Wilcox <willy@infradead.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [willy-pagecache:headers 17/18] fs/nfsd/nfs4proc.c:2015:34: error: implicit declaration of function 'filemap_check_wb_err'
Date: Fri, 14 Aug 2026 23:42:21 +0800	[thread overview]
Message-ID: <202608142324.EKix26tJ-lkp@intel.com> (raw)

tree:   git://git.infradead.org/users/willy/pagecache headers
head:   33e73a1e8175a4735e962dec9465e64e85d0a63d
commit: 7191691f80efdfec4c2f8d87da800a18b7753e08 [17/18] nfs: Remove pagemap.h from includes
config: arm-randconfig-001-20260814 (https://download.01.org/0day-ci/archive/20260814/202608142324.EKix26tJ-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260814/202608142324.EKix26tJ-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202608142324.EKix26tJ-lkp@intel.com/

All errors (new ones prefixed by >>):

   fs/nfsd/nfs4proc.c: In function '_nfsd_copy_file_range':
>> fs/nfsd/nfs4proc.c:2015:34: error: implicit declaration of function 'filemap_check_wb_err' [-Wimplicit-function-declaration]
    2015 |                         status = filemap_check_wb_err(dst->f_mapping, since);
         |                                  ^~~~~~~~~~~~~~~~~~~~


vim +/filemap_check_wb_err +2015 fs/nfsd/nfs4proc.c

e0639dc5805a9d Olga Kornievskaia 2018-07-20  1980  
3b7bf5933cada7 Chuck Lever       2022-07-27  1981  static ssize_t _nfsd_copy_file_range(struct nfsd4_copy *copy,
3b7bf5933cada7 Chuck Lever       2022-07-27  1982  				     struct file *dst,
3b7bf5933cada7 Chuck Lever       2022-07-27  1983  				     struct file *src)
e0639dc5805a9d Olga Kornievskaia 2018-07-20  1984  {
555dbf1a9aac6d Trond Myklebust   2021-12-18  1985  	errseq_t since;
e0639dc5805a9d Olga Kornievskaia 2018-07-20  1986  	ssize_t bytes_copied = 0;
e7a833e9cc6c3b J. Bruce Fields   2021-03-18  1987  	u64 bytes_total = copy->cp_count;
e0639dc5805a9d Olga Kornievskaia 2018-07-20  1988  	u64 src_pos = copy->cp_src_pos;
e0639dc5805a9d Olga Kornievskaia 2018-07-20  1989  	u64 dst_pos = copy->cp_dst_pos;
c2f1c4bd206211 Chuck Lever       2021-10-13  1990  	int status;
79a1d88a36f773 Brian Foster      2022-11-16  1991  	loff_t end;
e0639dc5805a9d Olga Kornievskaia 2018-07-20  1992  
792a5112aa90e5 J. Bruce Fields   2021-03-18  1993  	/* See RFC 7862 p.67: */
792a5112aa90e5 J. Bruce Fields   2021-03-18  1994  	if (bytes_total == 0)
792a5112aa90e5 J. Bruce Fields   2021-03-18  1995  		bytes_total = ULLONG_MAX;
20a67a7d18221a Chuck Lever       2026-05-22  1996  	since = READ_ONCE(dst->f_wb_err);
e0639dc5805a9d Olga Kornievskaia 2018-07-20  1997  	do {
fa341560ca7458 NeilBrown         2023-09-11  1998  		/* Only async copies can be stopped here */
e0639dc5805a9d Olga Kornievskaia 2018-07-20  1999  		if (kthread_should_stop())
e0639dc5805a9d Olga Kornievskaia 2018-07-20  2000  			break;
555dbf1a9aac6d Trond Myklebust   2021-12-18  2001  		bytes_copied = nfsd_copy_file_range(src, src_pos, dst, dst_pos,
5c4583b2b78eef Jeff Layton       2019-08-18  2002  						    bytes_total);
e0639dc5805a9d Olga Kornievskaia 2018-07-20  2003  		if (bytes_copied <= 0)
e0639dc5805a9d Olga Kornievskaia 2018-07-20  2004  			break;
e0639dc5805a9d Olga Kornievskaia 2018-07-20  2005  		bytes_total -= bytes_copied;
e0639dc5805a9d Olga Kornievskaia 2018-07-20  2006  		copy->cp_res.wr_bytes_written += bytes_copied;
e0639dc5805a9d Olga Kornievskaia 2018-07-20  2007  		src_pos += bytes_copied;
e0639dc5805a9d Olga Kornievskaia 2018-07-20  2008  		dst_pos += bytes_copied;
1913cdf56cb5bf Chuck Lever       2022-07-27  2009  	} while (bytes_total > 0 && nfsd4_copy_is_async(copy));
eac0b17a77fbd7 Olga Kornievskaia 2021-05-19  2010  	/* for a non-zero asynchronous copy do a commit of data */
1913cdf56cb5bf Chuck Lever       2022-07-27  2011  	if (nfsd4_copy_is_async(copy) && copy->cp_res.wr_bytes_written > 0) {
79a1d88a36f773 Brian Foster      2022-11-16  2012  		end = copy->cp_dst_pos + copy->cp_res.wr_bytes_written - 1;
79a1d88a36f773 Brian Foster      2022-11-16  2013  		status = vfs_fsync_range(dst, copy->cp_dst_pos, end, 0);
555dbf1a9aac6d Trond Myklebust   2021-12-18  2014  		if (!status)
555dbf1a9aac6d Trond Myklebust   2021-12-18 @2015  			status = filemap_check_wb_err(dst->f_mapping, since);
eac0b17a77fbd7 Olga Kornievskaia 2021-05-19  2016  		if (!status)
1913cdf56cb5bf Chuck Lever       2022-07-27  2017  			set_bit(NFSD4_COPY_F_COMMITTED, &copy->cp_flags);
f5cb2276954cb8 Chuck Lever       2026-05-22  2018  		else if (status != -EAGAIN && status != -ESTALE)
f5cb2276954cb8 Chuck Lever       2026-05-22  2019  			nfsd_reset_write_verifier(copy->cp_nn);
eac0b17a77fbd7 Olga Kornievskaia 2021-05-19  2020  	}
e0639dc5805a9d Olga Kornievskaia 2018-07-20  2021  	return bytes_copied;
e0639dc5805a9d Olga Kornievskaia 2018-07-20  2022  }
e0639dc5805a9d Olga Kornievskaia 2018-07-20  2023  

:::::: The code at line 2015 was first introduced by commit
:::::: 555dbf1a9aac6d3150c8b52fa35f768a692f4eeb nfsd: Replace use of rwsem with errseq_t

:::::: TO: Trond Myklebust <trond.myklebust@hammerspace.com>
:::::: CC: Chuck Lever <chuck.lever@oracle.com>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-08-14 15:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202608142324.EKix26tJ-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=willy@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.