* [goldwynr:iomap 4/33] fs/erofs/data.c:291:16: error: too few arguments to function 'iomap_readpage'
@ 2021-12-30 3:40 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-12-30 3:40 UTC (permalink / raw)
To: Goldwyn Rodrigues; +Cc: kbuild-all, linux-kernel
tree: https://github.com/goldwynr/linux iomap
head: 30c74a8c201365178cae26d0d7aefa120c3245ab
commit: 0a74a7494220c731edd0f327149f56a4da3419c4 [4/33] iomap: Introduce iomap_readpage_ops
config: sparc64-buildonly-randconfig-r002-20211230 (https://download.01.org/0day-ci/archive/20211230/202112301130.El4IhQ3g-lkp@intel.com/config)
compiler: sparc64-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://github.com/goldwynr/linux/commit/0a74a7494220c731edd0f327149f56a4da3419c4
git remote add goldwynr https://github.com/goldwynr/linux
git fetch --no-tags goldwynr iomap
git checkout 0a74a7494220c731edd0f327149f56a4da3419c4
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sparc64 SHELL=/bin/bash fs/erofs/
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_readpage':
>> fs/erofs/data.c:291:16: error: too few arguments to function 'iomap_readpage'
291 | return iomap_readpage(page, &erofs_iomap_ops);
| ^~~~~~~~~~~~~~
In file included from fs/erofs/internal.h:19,
from fs/erofs/data.c:7:
include/linux/iomap.h:235:5: note: declared here
235 | int iomap_readpage(struct page *page, const struct iomap_ops *ops,
| ^~~~~~~~~~~~~~
fs/erofs/data.c: In function 'erofs_readahead':
>> fs/erofs/data.c:296:16: error: too few arguments to function 'iomap_readahead'
296 | return iomap_readahead(rac, &erofs_iomap_ops);
| ^~~~~~~~~~~~~~~
In file included from fs/erofs/internal.h:19,
from fs/erofs/data.c:7:
include/linux/iomap.h:237:6: note: declared here
237 | void iomap_readahead(struct readahead_control *, const struct iomap_ops *ops,
| ^~~~~~~~~~~~~~~
fs/erofs/data.c:296:16: error: 'return' with a value, in function returning void [-Werror=return-type]
296 | return iomap_readahead(rac, &erofs_iomap_ops);
| ^~~~~~~~~~~~~~~
fs/erofs/data.c:294:13: note: declared here
294 | static void erofs_readahead(struct readahead_control *rac)
| ^~~~~~~~~~~~~~~
fs/erofs/data.c: In function 'erofs_readpage':
fs/erofs/data.c:292:1: error: control reaches end of non-void function [-Werror=return-type]
292 | }
| ^
cc1: some warnings being treated as errors
vim +/iomap_readpage +291 fs/erofs/data.c
eadcd6b5a1eb39 Gao Xiang 2021-08-13 284
771c994ea51f57 Gao Xiang 2021-08-05 285 /*
771c994ea51f57 Gao Xiang 2021-08-05 286 * since we dont have write or truncate flows, so no inode
771c994ea51f57 Gao Xiang 2021-08-05 287 * locking needs to be held at the moment.
771c994ea51f57 Gao Xiang 2021-08-05 288 */
771c994ea51f57 Gao Xiang 2021-08-05 289 static int erofs_readpage(struct file *file, struct page *page)
771c994ea51f57 Gao Xiang 2021-08-05 290 {
771c994ea51f57 Gao Xiang 2021-08-05 @291 return iomap_readpage(page, &erofs_iomap_ops);
771c994ea51f57 Gao Xiang 2021-08-05 292 }
771c994ea51f57 Gao Xiang 2021-08-05 293
771c994ea51f57 Gao Xiang 2021-08-05 294 static void erofs_readahead(struct readahead_control *rac)
771c994ea51f57 Gao Xiang 2021-08-05 295 {
771c994ea51f57 Gao Xiang 2021-08-05 @296 return iomap_readahead(rac, &erofs_iomap_ops);
771c994ea51f57 Gao Xiang 2021-08-05 297 }
771c994ea51f57 Gao Xiang 2021-08-05 298
:::::: The code at line 291 was first introduced by commit
:::::: 771c994ea51f572539ca3961c6a7706862b147e2 erofs: convert all uncompressed cases to iomap
:::::: TO: Gao Xiang <hsiangkao@linux.alibaba.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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-30 3:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-30 3:40 [goldwynr:iomap 4/33] fs/erofs/data.c:291:16: error: too few arguments to function 'iomap_readpage' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®