* [dhowells-fs:fscache-iter-2 74/74] fs/fscache/io.c:366:61: warning: implicit conversion from 'enum <anonymous>' to 'enum netfs_read_from_hole'
@ 2021-08-28 3:59 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-08-28 3:59 UTC (permalink / raw)
To: David Howells; +Cc: kbuild-all, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 2538 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git fscache-iter-2
head: 28d7bc7b5030ef7829d8e21696522adbf0ae90e4
commit: 28d7bc7b5030ef7829d8e21696522adbf0ae90e4 [74/74] nfs: Implement old I/O interface
config: m68k-allmodconfig (attached as .config)
compiler: m68k-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/dhowells/linux-fs.git/commit/?id=28d7bc7b5030ef7829d8e21696522adbf0ae90e4
git remote add dhowells-fs https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git
git fetch --no-tags dhowells-fs fscache-iter-2
git checkout 28d7bc7b5030ef7829d8e21696522adbf0ae90e4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
fs/fscache/io.c: In function '__fscache_deprecated_read_page':
>> fs/fscache/io.c:366:61: warning: implicit conversion from 'enum <anonymous>' to 'enum netfs_read_from_hole' [-Wenum-conversion]
366 | ret = fscache_read(&cres, page_offset(page), &iter, true, NULL, NULL);
| ^~~~
vim +366 fs/fscache/io.c
344
345 /*
346 * Deprecated page reading interface.
347 */
348 int __fscache_deprecated_read_page(struct fscache_cookie *cookie, struct page *page)
349 {
350 struct netfs_cache_resources cres;
351 struct iov_iter iter;
352 struct bio_vec bvec[1];
353 int ret;
354
355 memset(&cres, 0, sizeof(cres));
356 bvec[0].bv_page = page;
357 bvec[0].bv_offset = 0;
358 bvec[0].bv_len = PAGE_SIZE;
359 iov_iter_bvec(&iter, READ, bvec, ARRAY_SIZE(bvec), PAGE_SIZE);
360
361 ret = fscache_begin_operation(&cres, cookie, FSCACHE_WANT_READ,
362 fscache_access_io_read);
363 if (ret < 0)
364 return ret;
365
> 366 ret = fscache_read(&cres, page_offset(page), &iter, true, NULL, NULL);
367 fscache_end_operation(&cres);
368 return ret;
369 }
370 EXPORT_SYMBOL(__fscache_deprecated_read_page);
371
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 60648 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-28 4:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-28 3:59 [dhowells-fs:fscache-iter-2 74/74] fs/fscache/io.c:366:61: warning: implicit conversion from 'enum <anonymous>' to 'enum netfs_read_from_hole' 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;
as well as URLs for NNTP newsgroup(s).