* [viro-vfs:work.csum-x86 4/18] net/core/datagram.c:754:23: sparse: sparse: incorrect type in argument 1 (different base types)
@ 2023-11-24 20:04 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-11-24 20:04 UTC (permalink / raw)
To: Al Viro; +Cc: oe-kbuild-all, linux-fsdevel
tree: https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git work.csum-x86
head: f6c1313680f1d2319d2061c63abeb76f820319b8
commit: 90c2bfd06916ac7c05129b36683bfd3424d8e0e4 [4/18] Fix the csum_and_copy_..._user() idiocy
config: powerpc64-randconfig-r121-20231124 (https://download.01.org/0day-ci/archive/20231125/202311250254.UC1kAFDI-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce: (https://download.01.org/0day-ci/archive/20231125/202311250254.UC1kAFDI-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311250254.UC1kAFDI-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
net/core/datagram.c:745:55: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __wsum [usertype] v @@ got restricted __wsum_fault [usertype] next @@
net/core/datagram.c:745:55: sparse: expected restricted __wsum [usertype] v
net/core/datagram.c:745:55: sparse: got restricted __wsum_fault [usertype] next
net/core/datagram.c:745:54: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected restricted __wsum [usertype] csum2 @@ got restricted __wsum_fault @@
net/core/datagram.c:745:54: sparse: expected restricted __wsum [usertype] csum2
net/core/datagram.c:745:54: sparse: got restricted __wsum_fault
>> net/core/datagram.c:754:23: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __wsum [usertype] v @@ got restricted __wsum_fault @@
net/core/datagram.c:754:23: sparse: expected restricted __wsum [usertype] v
net/core/datagram.c:754:23: sparse: got restricted __wsum_fault
>> net/core/datagram.c:754:23: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __wsum [usertype] next @@ got restricted __wsum_fault @@
net/core/datagram.c:754:23: sparse: expected restricted __wsum [usertype] next
net/core/datagram.c:754:23: sparse: got restricted __wsum_fault
net/core/datagram.c: note: in included file (through include/linux/skbuff.h, include/net/net_namespace.h, include/linux/inet.h):
include/net/checksum.h:36:17: sparse: sparse: incorrect type in return expression (different base types) @@ expected restricted __wsum_fault @@ got restricted __wsum [usertype] @@
include/net/checksum.h:36:17: sparse: expected restricted __wsum_fault
include/net/checksum.h:36:17: sparse: got restricted __wsum [usertype]
include/net/checksum.h:36:17: sparse: sparse: incorrect type in return expression (different base types) @@ expected restricted __wsum_fault @@ got restricted __wsum [usertype] @@
include/net/checksum.h:36:17: sparse: expected restricted __wsum_fault
include/net/checksum.h:36:17: sparse: got restricted __wsum [usertype]
--
>> net/core/skbuff.c:3385:24: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __wsum [usertype] v @@ got restricted __wsum_fault @@
net/core/skbuff.c:3385:24: sparse: expected restricted __wsum [usertype] v
net/core/skbuff.c:3385:24: sparse: got restricted __wsum_fault
>> net/core/skbuff.c:3385:22: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __wsum [usertype] csum @@ got restricted __wsum_fault @@
net/core/skbuff.c:3385:22: sparse: expected restricted __wsum [usertype] csum
net/core/skbuff.c:3385:22: sparse: got restricted __wsum_fault
net/core/skbuff.c:3414:41: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __wsum [usertype] v @@ got restricted __wsum_fault @@
net/core/skbuff.c:3414:41: sparse: expected restricted __wsum [usertype] v
net/core/skbuff.c:3414:41: sparse: got restricted __wsum_fault
>> net/core/skbuff.c:3414:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __wsum [usertype] csum2 @@ got restricted __wsum_fault @@
net/core/skbuff.c:3414:39: sparse: expected restricted __wsum [usertype] csum2
net/core/skbuff.c:3414:39: sparse: got restricted __wsum_fault
net/core/skbuff.c:6971:55: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __wsum [usertype] v @@ got restricted __wsum_fault [usertype] next @@
net/core/skbuff.c:6971:55: sparse: expected restricted __wsum [usertype] v
net/core/skbuff.c:6971:55: sparse: got restricted __wsum_fault [usertype] next
net/core/skbuff.c:6971:54: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected restricted __wsum [usertype] csum2 @@ got restricted __wsum_fault @@
net/core/skbuff.c:6971:54: sparse: expected restricted __wsum [usertype] csum2
net/core/skbuff.c:6971:54: sparse: got restricted __wsum_fault
net/core/skbuff.c:6958:23: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __wsum [usertype] v @@ got restricted __wsum_fault @@
net/core/skbuff.c:6958:23: sparse: expected restricted __wsum [usertype] v
net/core/skbuff.c:6958:23: sparse: got restricted __wsum_fault
>> net/core/skbuff.c:6958:23: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __wsum [usertype] next @@ got restricted __wsum_fault @@
net/core/skbuff.c:6958:23: sparse: expected restricted __wsum [usertype] next
net/core/skbuff.c:6958:23: sparse: got restricted __wsum_fault
net/core/skbuff.c: note: in included file (through include/net/net_namespace.h, include/linux/inet.h):
include/linux/skbuff.h:2703:28: sparse: sparse: self-comparison always evaluates to false
net/core/skbuff.c: note: in included file (through include/linux/skbuff.h, include/net/net_namespace.h, include/linux/inet.h):
include/net/checksum.h:36:17: sparse: sparse: incorrect type in return expression (different base types) @@ expected restricted __wsum_fault @@ got restricted __wsum [usertype] @@
include/net/checksum.h:36:17: sparse: expected restricted __wsum_fault
include/net/checksum.h:36:17: sparse: got restricted __wsum [usertype]
include/net/checksum.h:36:17: sparse: sparse: incorrect type in return expression (different base types) @@ expected restricted __wsum_fault @@ got restricted __wsum [usertype] @@
include/net/checksum.h:36:17: sparse: expected restricted __wsum_fault
include/net/checksum.h:36:17: sparse: got restricted __wsum [usertype]
--
drivers/net/ethernet/3com/typhoon.c:769:21: sparse: sparse: restricted __be16 degrades to integer
>> drivers/net/ethernet/3com/typhoon.c:1418:42: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __wsum [usertype] v @@ got restricted __wsum_fault @@
drivers/net/ethernet/3com/typhoon.c:1418:42: sparse: expected restricted __wsum [usertype] v
drivers/net/ethernet/3com/typhoon.c:1418:42: sparse: got restricted __wsum_fault
>> drivers/net/ethernet/3com/typhoon.c:1418:42: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected restricted __wsum [usertype] sum @@ got restricted __wsum_fault @@
drivers/net/ethernet/3com/typhoon.c:1418:42: sparse: expected restricted __wsum [usertype] sum
drivers/net/ethernet/3com/typhoon.c:1418:42: sparse: got restricted __wsum_fault
drivers/net/ethernet/3com/typhoon.c:525:39: sparse: sparse: context imbalance in 'typhoon_process_response' - different lock contexts for basic block
drivers/net/ethernet/3com/typhoon.c: note: in included file (through include/linux/skbuff.h, include/net/net_namespace.h, include/linux/netdevice.h):
include/net/checksum.h:36:17: sparse: sparse: incorrect type in return expression (different base types) @@ expected restricted __wsum_fault @@ got restricted __wsum [usertype] @@
include/net/checksum.h:36:17: sparse: expected restricted __wsum_fault
include/net/checksum.h:36:17: sparse: got restricted __wsum [usertype]
vim +754 net/core/datagram.c
6d0d419914286a David Howells 2023-09-25 748
6d0d419914286a David Howells 2023-09-25 749 static __always_inline
6d0d419914286a David Howells 2023-09-25 750 size_t memcpy_to_iter_csum(void *iter_to, size_t progress,
6d0d419914286a David Howells 2023-09-25 751 size_t len, void *from, void *priv2)
6d0d419914286a David Howells 2023-09-25 752 {
6d0d419914286a David Howells 2023-09-25 753 __wsum *csum = priv2;
dc32bff195b45e David Howells 2023-09-25 @754 __wsum next = csum_partial_copy_nocheck(from, iter_to, len);
6d0d419914286a David Howells 2023-09-25 755
dc32bff195b45e David Howells 2023-09-25 756 *csum = csum_block_add(*csum, next, progress);
6d0d419914286a David Howells 2023-09-25 757 return 0;
6d0d419914286a David Howells 2023-09-25 758 }
6d0d419914286a David Howells 2023-09-25 759
:::::: The code at line 754 was first introduced by commit
:::::: dc32bff195b45e8571c442954beee259e9500dac iov_iter, net: Fold in csum_and_memcpy()
:::::: TO: David Howells <dhowells@redhat.com>
:::::: CC: Christian Brauner <brauner@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-24 20:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-24 20:04 [viro-vfs:work.csum-x86 4/18] net/core/datagram.c:754:23: sparse: sparse: incorrect type in argument 1 (different base types) kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.