All of lore.kernel.org
 help / color / mirror / Atom feed
* [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
@ 2021-08-08 10:19 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-08-08 10:19 UTC (permalink / raw)
  To: kbuild-all

[-- 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 --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-08 10:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-08 10:19 [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 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.