tree:
https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.iov_iter
head: 3d790e1f3757c80812edde517bc02d3f080ddd05
commit: 658ac2d3097c9bb5aa0cba780dbcd49867f2d35a [12/37] iov_iter: separate direction from
flavour
config: riscv-randconfig-s031-20210608 (attached as .config)
compiler: riscv32-linux-gcc (GCC) 9.3.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
#
https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git/commit/?id=6...
git remote add vfs
https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git
git fetch --no-tags vfs work.iov_iter
git checkout 658ac2d3097c9bb5aa0cba780dbcd49867f2d35a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
lib/iov_iter.c: In function 'iov_iter_init':
> lib/iov_iter.c:2023: error: unterminated argument list invoking
macro "WARN_ON_ONCE"
2023 | EXPORT_SYMBOL(import_single_range);
|
> lib/iov_iter.c:492:2: error: 'WARN_ON_ONCE' undeclared
(first use in this function)
492 | WARN_ON_ONCE(uaccess_kernel();
| ^~~~~~~~~~~~
lib/iov_iter.c:492:2: note: each undeclared identifier is reported only once for each
function it appears in
> lib/iov_iter.c:492:14: error: expected ';' at end of
input
492 | WARN_ON_ONCE(uaccess_kernel();
| ^
| ;
......
2023 | EXPORT_SYMBOL(import_single_range);
|
> lib/iov_iter.c:492:2: error: expected declaration or statement at
end of input
492 | WARN_ON_ONCE(uaccess_kernel();
| ^~~~~~~~~~~~
At top level:
lib/iov_iter.c:414:15: warning: 'copy_page_to_iter_pipe' defined but not used
[-Wunused-function]
414 | static size_t copy_page_to_iter_pipe(struct page *page, size_t offset, size_t
bytes,
| ^~~~~~~~~~~~~~~~~~~~~~
lib/iov_iter.c:287:15: warning: 'copy_page_from_iter_iovec' defined but not
used [-Wunused-function]
287 | static size_t copy_page_from_iter_iovec(struct page *page, size_t offset,
size_t bytes,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
lib/iov_iter.c:203:15: warning: 'copy_page_to_iter_iovec' defined but not used
[-Wunused-function]
203 | static size_t copy_page_to_iter_iovec(struct page *page, size_t offset, size_t
bytes,
| ^~~~~~~~~~~~~~~~~~~~~~~
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for ERRATA_SIFIVE
Depends on RISCV_ERRATA_ALTERNATIVE
Selected by
- SOC_SIFIVE
vim +/WARN_ON_ONCE +2023 lib/iov_iter.c
bc917be8105993 Al Viro 2015-03-21 2009
bc917be8105993 Al Viro 2015-03-21 2010 int import_single_range(int rw, void
__user *buf, size_t len,
bc917be8105993 Al Viro 2015-03-21 2011 struct iovec *iov, struct iov_iter *i)
bc917be8105993 Al Viro 2015-03-21 2012 {
bc917be8105993 Al Viro 2015-03-21 2013 if (len > MAX_RW_COUNT)
bc917be8105993 Al Viro 2015-03-21 2014 len = MAX_RW_COUNT;
96d4f267e40f95 Linus Torvalds 2019-01-03 2015 if (unlikely(!access_ok(buf, len)))
bc917be8105993 Al Viro 2015-03-21 2016 return -EFAULT;
bc917be8105993 Al Viro 2015-03-21 2017
bc917be8105993 Al Viro 2015-03-21 2018 iov->iov_base = buf;
bc917be8105993 Al Viro 2015-03-21 2019 iov->iov_len = len;
bc917be8105993 Al Viro 2015-03-21 2020 iov_iter_init(i, rw, iov, 1, len);
bc917be8105993 Al Viro 2015-03-21 2021 return 0;
bc917be8105993 Al Viro 2015-03-21 2022 }
e12675853d717c Al Viro 2015-12-06 @2023 EXPORT_SYMBOL(import_single_range);
:::::: The code at line 2023 was first introduced by commit
:::::: e12675853d717ce8de7d91089cc1a95bb8525f6c iov_iter: export import_single_range()
:::::: TO: Al Viro <viro(a)zeniv.linux.org.uk>
:::::: CC: Al Viro <viro(a)zeniv.linux.org.uk>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org