[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202108281133.gmq5qIcJ-lkp@intel.com>
Date: Sat, 28 Aug 2021 11:59:39 +0800
From: kernel test robot <lkp@...el.com>
To: David Howells <dhowells@...hat.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [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'
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@...el.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
Download attachment ".config.gz" of type "application/gzip" (60648 bytes)
Powered by blists - more mailing lists