Hi Arseny,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on linus/master]
[cannot apply to vhost/linux-next v5.11-rc6 next-20210125]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url:
https://github.com/0day-ci/linux/commits/Arseny-Krasnov/virtio-vsock-intr...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
61556703b610a104de324e4f061dc6cf7b218b46
config: i386-randconfig-s001-20210209 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-215-g0fb77bb6-dirty
#
https://github.com/0day-ci/linux/commit/0bfa48046cf3aa71cde18727f1ac90448...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Arseny-Krasnov/virtio-vsock-introduce-SOCK_SEQPACKET-support/20210207-232655
git checkout 0bfa48046cf3aa71cde18727f1ac90448308bfdd
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
"sparse warnings: (new ones prefixed by >>)"
net/vmw_vsock/virtio_transport_common.c:430:31: sparse: sparse: incorrect type in
initializer (different base types) @@ expected restricted __le32 [usertype] msg_cnt @@
got unsigned int [usertype] next_tx_msg_cnt @@
net/vmw_vsock/virtio_transport_common.c:430:31: sparse: expected restricted __le32
[usertype] msg_cnt
net/vmw_vsock/virtio_transport_common.c:430:31: sparse: got unsigned int [usertype]
next_tx_msg_cnt
> net/vmw_vsock/virtio_transport_common.c:431:28: sparse: sparse:
incorrect type in initializer (different base types) @@ expected restricted __le32
[usertype] msg_len @@ got unsigned int [usertype] len @@
net/vmw_vsock/virtio_transport_common.c:431:28: sparse: expected restricted __le32
[usertype] msg_len
net/vmw_vsock/virtio_transport_common.c:431:28: sparse: got unsigned int [usertype]
len
vim +431 net/vmw_vsock/virtio_transport_common.c
416
417 static int virtio_transport_seqpacket_send_ctrl(struct vsock_sock *vsk,
418 int type,
419 size_t len,
420 int flags)
421 {
422 struct virtio_vsock_sock *vvs = vsk->trans;
423 struct virtio_vsock_pkt_info info = {
424 .op = type,
425 .vsk = vsk,
426 .pkt_len = sizeof(struct virtio_vsock_seq_hdr)
427 };
428
429 struct virtio_vsock_seq_hdr seq_hdr = {
430 .msg_cnt = vvs->next_tx_msg_cnt,
431 .msg_len = len
432 };
433
434 struct kvec seq_hdr_kiov = {
435 .iov_base = (void *)&seq_hdr,
436 .iov_len = sizeof(struct virtio_vsock_seq_hdr)
437 };
438
439 struct msghdr msg = {0};
440
441 //XXX: do we need 'vsock_transport_send_notify_data' pointer?
442 if (vsock_wait_space(sk_vsock(vsk),
443 sizeof(struct virtio_vsock_seq_hdr),
444 flags, NULL))
445 return -1;
446
447 iov_iter_kvec(&msg.msg_iter, WRITE, &seq_hdr_kiov, 1, sizeof(seq_hdr));
448
449 info.msg = &msg;
450 vvs->next_tx_msg_cnt++;
451
452 return virtio_transport_send_pkt_info(vsk, &info);
453 }
454
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org