[vfs:untested.iov_iter 11/13] lib/iov_iter.c:598:9: sparse: sparse: incompatible types in comparison expression (different type sizes):

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>


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@xxxxxxxxxxxxxxxxxx>
:::::: CC: Al Viro <viro@xxxxxxxxxxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux