tree:
https://github.com/osandov/linux.git btrfs-send-encoded
head: 69d4fc5054f4b51177caf5771100de46bd10bba8
commit: 68812638bf2d878a7c63f705fa098efe9c900806 [11/16] btrfs: implement RWF_ENCODED
writes
config: nds32-randconfig-r032-20201113 (attached as .config)
compiler: nds32le-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://github.com/osandov/linux/commit/68812638bf2d878a7c63f705fa098efe9...
git remote add osandov
https://github.com/osandov/linux.git
git fetch --no-tags osandov btrfs-send-encoded
git checkout 68812638bf2d878a7c63f705fa098efe9c900806
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nds32
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
> fs/btrfs/file.c:1997:9: warning: no previous prototype for
'btrfs_encoded_write' [-Wmissing-prototypes]
1997 | ssize_t
btrfs_encoded_write(struct kiocb *iocb, struct iov_iter *from)
| ^~~~~~~~~~~~~~~~~~~
vim +/btrfs_encoded_write +1997 fs/btrfs/file.c
1996
1997 ssize_t btrfs_encoded_write(struct kiocb *iocb, struct iov_iter
*from)
1998 {
1999 struct file *file = iocb->ki_filp;
2000 struct inode *inode = file_inode(file);
2001 struct encoded_iov encoded;
2002 ssize_t ret;
2003
2004 ret = copy_encoded_iov_from_iter(&encoded, from);
2005 if (ret)
2006 return ret;
2007
2008 btrfs_inode_lock(inode, 0);
2009 ret = generic_encoded_write_checks(iocb, &encoded);
2010 if (ret || encoded.len == 0)
2011 goto out;
2012
2013 ret = btrfs_write_check(iocb, from, encoded.len);
2014 if (ret < 0)
2015 goto out;
2016
2017 ret = btrfs_do_encoded_write(iocb, from, &encoded);
2018 out:
2019 btrfs_inode_unlock(inode, 0);
2020 return ret;
2021 }
2022
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org