From: kernel test robot <lkp@intel.com>
To: David Howells <dhowells@redhat.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.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'
Date: Sat, 28 Aug 2021 11:59:39 +0800 [thread overview]
Message-ID: <202108281133.gmq5qIcJ-lkp@intel.com> (raw)
[-- 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 --]
reply other threads:[~2021-08-28 4:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202108281133.gmq5qIcJ-lkp@intel.com \
--to=lkp@intel.com \
--cc=dhowells@redhat.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).