lkml.org 
[lkml]   [2021]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[gfs2:for-next 14/38] fs/erofs/data.c:289:32: error: too few arguments to function 'iomap_dio_rw'
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git for-next
head: 9d0084204c8a7e01f9b8ebe81402be61e0a67a62
commit: ec80c70d41f2bb63d9e62204d3a3450c41678f67 [14/38] iomap: Add done_before argument to iomap_dio_rw
config: nios2-randconfig-r003-20211013 (attached as .config)
compiler: nios2-linux-gcc (GCC) 11.2.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://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git/commit/?id=ec80c70d41f2bb63d9e62204d3a3450c41678f67
git remote add gfs2 https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git
git fetch --no-tags gfs2 for-next
git checkout ec80c70d41f2bb63d9e62204d3a3450c41678f67
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=nios2 SHELL=/bin/bash block/ fs/erofs/ net/bluetooth/

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

fs/erofs/data.c: In function 'erofs_file_read_iter':
>> fs/erofs/data.c:289:32: error: too few arguments to function 'iomap_dio_rw'
289 | return iomap_dio_rw(iocb, to, &erofs_iomap_ops,
| ^~~~~~~~~~~~
In file included from fs/erofs/internal.h:19,
from fs/erofs/data.c:7:
include/linux/iomap.h:340:9: note: declared here
340 | ssize_t iomap_dio_rw(struct kiocb *iocb, struct iov_iter *iter,
| ^~~~~~~~~~~~


vim +/iomap_dio_rw +289 fs/erofs/data.c

a08e67a0280215 Huang Jianan 2021-08-05 274
a08e67a0280215 Huang Jianan 2021-08-05 275 static ssize_t erofs_file_read_iter(struct kiocb *iocb, struct iov_iter *to)
a08e67a0280215 Huang Jianan 2021-08-05 276 {
a08e67a0280215 Huang Jianan 2021-08-05 277 /* no need taking (shared) inode lock since it's a ro filesystem */
a08e67a0280215 Huang Jianan 2021-08-05 278 if (!iov_iter_count(to))
a08e67a0280215 Huang Jianan 2021-08-05 279 return 0;
a08e67a0280215 Huang Jianan 2021-08-05 280
06252e9ce05b94 Gao Xiang 2021-08-05 281 #ifdef CONFIG_FS_DAX
06252e9ce05b94 Gao Xiang 2021-08-05 282 if (IS_DAX(iocb->ki_filp->f_mapping->host))
06252e9ce05b94 Gao Xiang 2021-08-05 283 return dax_iomap_rw(iocb, to, &erofs_iomap_ops);
06252e9ce05b94 Gao Xiang 2021-08-05 284 #endif
a08e67a0280215 Huang Jianan 2021-08-05 285 if (iocb->ki_flags & IOCB_DIRECT) {
a08e67a0280215 Huang Jianan 2021-08-05 286 int err = erofs_prepare_dio(iocb, to);
a08e67a0280215 Huang Jianan 2021-08-05 287
a08e67a0280215 Huang Jianan 2021-08-05 288 if (!err)
a08e67a0280215 Huang Jianan 2021-08-05 @289 return iomap_dio_rw(iocb, to, &erofs_iomap_ops,
a08e67a0280215 Huang Jianan 2021-08-05 290 NULL, 0);
a08e67a0280215 Huang Jianan 2021-08-05 291 if (err < 0)
a08e67a0280215 Huang Jianan 2021-08-05 292 return err;
a08e67a0280215 Huang Jianan 2021-08-05 293 }
a08e67a0280215 Huang Jianan 2021-08-05 294 return filemap_read(iocb, to, 0);
a08e67a0280215 Huang Jianan 2021-08-05 295 }
a08e67a0280215 Huang Jianan 2021-08-05 296

:::::: The code at line 289 was first introduced by commit
:::::: a08e67a0280215f74eccf14fda81dd7fed6596ba erofs: iomap support for non-tailpacking DIO

:::::: TO: Huang Jianan <huangjianan@oppo.com>
:::::: CC: Gao Xiang <hsiangkao@linux.alibaba.com>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-10-14 01:02    [W:0.031 / U:0.396 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site