From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [sashal-linux-stable:pending-5.13 89/106] net/vmw_vsock/virtio_transport_common.c:958:42: error: too few arguments to function call, expected 3, have 1
Date: Sun, 08 Aug 2021 18:19:43 +0800 [thread overview]
Message-ID: <202108081841.sAxELNLK-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3473 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git pending-5.13
head: 1483d0b85a78585ce9792b02824e6f367574b6c5
commit: 37d62ce6c7216c1ac1451305cebd1301f1c14033 [89/106] VSOCK: handle VIRTIO_VSOCK_OP_CREDIT_REQUEST
config: x86_64-randconfig-a002-20210808 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 41a6b50c25961addc04438b567ee1f4ef9e40f98)
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/sashal/linux-stable.git/commit/?id=37d62ce6c7216c1ac1451305cebd1301f1c14033
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable pending-5.13
git checkout 37d62ce6c7216c1ac1451305cebd1301f1c14033
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> net/vmw_vsock/virtio_transport_common.c:958:42: error: too few arguments to function call, expected 3, have 1
virtio_transport_send_credit_update(vsk);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
net/vmw_vsock/virtio_transport_common.c:272:12: note: 'virtio_transport_send_credit_update' declared here
static int virtio_transport_send_credit_update(struct vsock_sock *vsk,
^
1 error generated.
vim +958 net/vmw_vsock/virtio_transport_common.c
944
945 static int
946 virtio_transport_recv_connected(struct sock *sk,
947 struct virtio_vsock_pkt *pkt)
948 {
949 struct vsock_sock *vsk = vsock_sk(sk);
950 int err = 0;
951
952 switch (le16_to_cpu(pkt->hdr.op)) {
953 case VIRTIO_VSOCK_OP_RW:
954 virtio_transport_recv_enqueue(vsk, pkt);
955 sk->sk_data_ready(sk);
956 return err;
957 case VIRTIO_VSOCK_OP_CREDIT_REQUEST:
> 958 virtio_transport_send_credit_update(vsk);
959 break;
960 case VIRTIO_VSOCK_OP_CREDIT_UPDATE:
961 sk->sk_write_space(sk);
962 break;
963 case VIRTIO_VSOCK_OP_SHUTDOWN:
964 if (le32_to_cpu(pkt->hdr.flags) & VIRTIO_VSOCK_SHUTDOWN_RCV)
965 vsk->peer_shutdown |= RCV_SHUTDOWN;
966 if (le32_to_cpu(pkt->hdr.flags) & VIRTIO_VSOCK_SHUTDOWN_SEND)
967 vsk->peer_shutdown |= SEND_SHUTDOWN;
968 if (vsk->peer_shutdown == SHUTDOWN_MASK &&
969 vsock_stream_has_data(vsk) <= 0 &&
970 !sock_flag(sk, SOCK_DONE)) {
971 (void)virtio_transport_reset(vsk, NULL);
972
973 virtio_transport_do_close(vsk, true);
974 }
975 if (le32_to_cpu(pkt->hdr.flags))
976 sk->sk_state_change(sk);
977 break;
978 case VIRTIO_VSOCK_OP_RST:
979 virtio_transport_do_close(vsk, true);
980 break;
981 default:
982 err = -EINVAL;
983 break;
984 }
985
986 virtio_transport_free_pkt(pkt);
987 return err;
988 }
989
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 36484 bytes --]
reply other threads:[~2021-08-08 10:19 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=202108081841.sAxELNLK-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.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 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.