From: kernel test robot <lkp@intel.com>
To: Al Viro <viro@zeniv.linux.org.uk>
Cc: kbuild-all@lists.01.org, linux-fsdevel@vger.kernel.org
Subject: [vfs:untested.iov_iter 11/13] lib/iov_iter.c:598:9: sparse: sparse: incompatible types in comparison expression (different type sizes):
Date: Tue, 27 Apr 2021 15:06:13 +0800 [thread overview]
Message-ID: <202104271506.uRRM0pWE-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 6514 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git untested.iov_iter
head: 5ed11e04d3f20dc089bf8cfc4ef08953e7e48765
commit: 2160c8ecd95266d189d400998a7d8c67a34a9c1e [11/13] iterate_bvec(): expand bvec.h macro forest, massage a bit
config: nios2-randconfig-s031-20210426 (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git/commit/?id=2160c8ecd95266d189d400998a7d8c67a34a9c1e
git remote add vfs https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git
git fetch --no-tags vfs untested.iov_iter
git checkout 2160c8ecd95266d189d400998a7d8c67a34a9c1e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=nios2
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
>> lib/iov_iter.c:598:9: sparse: sparse: incompatible types in comparison expression (different type sizes):
>> lib/iov_iter.c:598:9: sparse: unsigned int *
>> lib/iov_iter.c:598:9: sparse: unsigned long *
lib/iov_iter.c:735:9: sparse: sparse: incompatible types in comparison expression (different type sizes):
lib/iov_iter.c:735:9: sparse: unsigned int *
lib/iov_iter.c:735:9: sparse: unsigned long *
lib/iov_iter.c:758:9: sparse: sparse: incompatible types in comparison expression (different type sizes):
lib/iov_iter.c:758:9: sparse: unsigned int *
lib/iov_iter.c:758:9: sparse: unsigned long *
lib/iov_iter.c:780:9: sparse: sparse: incompatible types in comparison expression (different type sizes):
lib/iov_iter.c:780:9: sparse: unsigned int *
lib/iov_iter.c:780:9: sparse: unsigned long *
lib/iov_iter.c:837:9: sparse: sparse: incompatible types in comparison expression (different type sizes):
lib/iov_iter.c:837:9: sparse: unsigned int *
lib/iov_iter.c:837:9: sparse: unsigned long *
lib/iov_iter.c:947:9: sparse: sparse: incompatible types in comparison expression (different type sizes):
lib/iov_iter.c:947:9: sparse: unsigned int *
lib/iov_iter.c:947:9: sparse: unsigned long *
lib/iov_iter.c:970:9: sparse: sparse: incompatible types in comparison expression (different type sizes):
lib/iov_iter.c:970:9: sparse: unsigned int *
lib/iov_iter.c:970:9: sparse: unsigned long *
lib/iov_iter.c:1543:9: sparse: sparse: incompatible types in comparison expression (different type sizes):
lib/iov_iter.c:1543:9: sparse: unsigned int *
lib/iov_iter.c:1543:9: sparse: unsigned long *
lib/iov_iter.c:1584:9: sparse: sparse: incompatible types in comparison expression (different type sizes):
lib/iov_iter.c:1584:9: sparse: unsigned int *
lib/iov_iter.c:1584:9: sparse: unsigned long *
lib/iov_iter.c:1630:9: sparse: sparse: incompatible types in comparison expression (different type sizes):
lib/iov_iter.c:1630:9: sparse: unsigned int *
lib/iov_iter.c:1630:9: sparse: unsigned long *
lib/iov_iter.c: note: in included file:
include/net/checksum.h:31:39: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected restricted __wsum [usertype] sum @@ got unsigned int @@
include/net/checksum.h:31:39: sparse: expected restricted __wsum [usertype] sum
include/net/checksum.h:31:39: sparse: got unsigned int
include/net/checksum.h:31:39: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected restricted __wsum [usertype] sum @@ got unsigned int @@
include/net/checksum.h:31:39: sparse: expected restricted __wsum [usertype] sum
include/net/checksum.h:31:39: sparse: got unsigned int
include/net/checksum.h:39:45: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected restricted __wsum [usertype] sum @@ got unsigned int @@
include/net/checksum.h:39:45: sparse: expected restricted __wsum [usertype] sum
include/net/checksum.h:39:45: sparse: got unsigned int
vim +598 lib/iov_iter.c
78e1f386170798 lib/iov_iter.c Al Viro 2018-11-25 590
aa28de275a2488 lib/iov_iter.c Al Viro 2017-06-29 591 size_t _copy_to_iter(const void *addr, size_t bytes, struct iov_iter *i)
62a8067a7f35db mm/iov_iter.c Al Viro 2014-04-04 592 {
36f7a8a4cd2e99 lib/iov_iter.c Al Viro 2015-12-06 593 const char *from = addr;
00e23707442a75 lib/iov_iter.c David Howells 2018-10-22 594 if (unlikely(iov_iter_is_pipe(i)))
241699cd72a848 lib/iov_iter.c Al Viro 2016-09-22 595 return copy_pipe_to_iter(addr, bytes, i);
09fc68dc66f759 lib/iov_iter.c Al Viro 2017-06-29 596 if (iter_is_iovec(i))
09fc68dc66f759 lib/iov_iter.c Al Viro 2017-06-29 597 might_fault();
3d4d3e48264e24 mm/iov_iter.c Al Viro 2014-11-27 @598 iterate_and_advance(i, bytes, v,
09fc68dc66f759 lib/iov_iter.c Al Viro 2017-06-29 599 copyout(v.iov_base, (from += v.iov_len) - v.iov_len, v.iov_len),
3d4d3e48264e24 mm/iov_iter.c Al Viro 2014-11-27 600 memcpy_to_page(v.bv_page, v.bv_offset,
a280455fa87053 mm/iov_iter.c Al Viro 2014-11-27 601 (from += v.bv_len) - v.bv_len, v.bv_len),
a280455fa87053 mm/iov_iter.c Al Viro 2014-11-27 602 memcpy(v.iov_base, (from += v.iov_len) - v.iov_len, v.iov_len)
3d4d3e48264e24 mm/iov_iter.c Al Viro 2014-11-27 603 )
62a8067a7f35db mm/iov_iter.c Al Viro 2014-04-04 604
3d4d3e48264e24 mm/iov_iter.c Al Viro 2014-11-27 605 return bytes;
c35e02480014f7 mm/iov_iter.c Matthew Wilcox 2014-08-01 606 }
aa28de275a2488 lib/iov_iter.c Al Viro 2017-06-29 607 EXPORT_SYMBOL(_copy_to_iter);
c35e02480014f7 mm/iov_iter.c Matthew Wilcox 2014-08-01 608
:::::: The code at line 598 was first introduced by commit
:::::: 3d4d3e48264e24d9beb373bd0428b69889ac11ea iov_iter.c: convert copy_to_iter() to iterate_and_advance
:::::: TO: Al Viro <viro@zeniv.linux.org.uk>
:::::: CC: Al Viro <viro@zeniv.linux.org.uk>
---
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: 20393 bytes --]
reply other threads:[~2021-04-27 7:06 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=202104271506.uRRM0pWE-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
/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).