From: kernel test robot <lkp@intel.com>
To: Heng Qi <hengqi@linux.alibaba.com>,
netdev@vger.kernel.org, virtualization@lists.linux.dev
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Jason Wang <jasowang@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
Paolo Abeni <pabeni@redhat.com>, Jakub Kicinski <kuba@kernel.org>,
Eric Dumazet <edumazet@google.com>,
Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Subject: Re: [PATCH net-next 3/3] virtio-net: reduce the CPU consumption of dim worker
Date: Fri, 19 Jan 2024 18:31:18 +0800 [thread overview]
Message-ID: <202401191807.RIhMHJ4U-lkp@intel.com> (raw)
In-Reply-To: <1705410693-118895-4-git-send-email-hengqi@linux.alibaba.com>
Hi Heng,
kernel test robot noticed the following build errors:
[auto build test ERROR on net-next/main]
url: https://github.com/intel-lab-lkp/linux/commits/Heng-Qi/virtio-net-fix-possible-dim-status-unrecoverable/20240116-211306
base: net-next/main
patch link: https://lore.kernel.org/r/1705410693-118895-4-git-send-email-hengqi%40linux.alibaba.com
patch subject: [PATCH net-next 3/3] virtio-net: reduce the CPU consumption of dim worker
config: i386-randconfig-012-20240119 (https://download.01.org/0day-ci/archive/20240119/202401191807.RIhMHJ4U-lkp@intel.com/config)
compiler: ClangBuiltLinux clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240119/202401191807.RIhMHJ4U-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/202401191807.RIhMHJ4U-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/net/virtio_net.c:3590:27: error: invalid application of 'sizeof' to an incomplete type 'struct virtnet_coal_entry'
3590 | ctrl->num_entries * sizeof(struct virtnet_coal_entry));
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/virtio_net.c:3590:41: note: forward declaration of 'struct virtnet_coal_entry'
3590 | ctrl->num_entries * sizeof(struct virtnet_coal_entry));
| ^
drivers/net/virtio_net.c:3658:27: error: invalid application of 'sizeof' to an incomplete type 'struct virtnet_coal_entry'
3658 | vi->max_queue_pairs * sizeof(struct virtnet_coal_entry));
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/virtio_net.c:3658:41: note: forward declaration of 'struct virtnet_coal_entry'
3658 | vi->max_queue_pairs * sizeof(struct virtnet_coal_entry));
| ^
drivers/net/virtio_net.c:4544:31: error: invalid application of 'sizeof' to an incomplete type 'struct virtnet_coal_entry'
4544 | vi->max_queue_pairs * sizeof(struct virtnet_coal_entry)), GFP_KERNEL);
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/virtio_net.c:4544:45: note: forward declaration of 'struct virtnet_coal_entry'
4544 | vi->max_queue_pairs * sizeof(struct virtnet_coal_entry)), GFP_KERNEL);
| ^
drivers/net/virtio_net.c:4551:27: error: invalid application of 'sizeof' to an incomplete type 'struct virtnet_coal_entry'
4551 | vi->max_queue_pairs * sizeof(struct virtnet_coal_entry));
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/virtio_net.c:4544:45: note: forward declaration of 'struct virtnet_coal_entry'
4544 | vi->max_queue_pairs * sizeof(struct virtnet_coal_entry)), GFP_KERNEL);
| ^
4 errors generated.
vim +3590 drivers/net/virtio_net.c
3570
3571 static bool virtnet_add_dim_command(struct virtnet_info *vi,
3572 struct virtnet_batch_coal *ctrl)
3573 {
3574 struct scatterlist *sgs[4], hdr, stat, out;
3575 unsigned out_num = 0;
3576 int ret;
3577
3578 /* Caller should know better */
3579 BUG_ON(!virtio_has_feature(vi->vdev, VIRTIO_NET_F_CTRL_VQ));
3580
3581 ctrl->hdr.class = VIRTIO_NET_CTRL_NOTF_COAL;
3582 ctrl->hdr.cmd = VIRTIO_NET_CTRL_NOTF_COAL_VQS_SET;
3583
3584 /* Add header */
3585 sg_init_one(&hdr, &ctrl->hdr, sizeof(ctrl->hdr));
3586 sgs[out_num++] = &hdr;
3587
3588 /* Add body */
3589 sg_init_one(&out, &ctrl->num_entries, sizeof(ctrl->num_entries) +
> 3590 ctrl->num_entries * sizeof(struct virtnet_coal_entry));
3591 sgs[out_num++] = &out;
3592
3593 /* Add return status. */
3594 ctrl->status = VIRTIO_NET_OK;
3595 sg_init_one(&stat, &ctrl->status, sizeof(ctrl->status));
3596 sgs[out_num] = &stat;
3597
3598 BUG_ON(out_num + 1 > ARRAY_SIZE(sgs));
3599 ret = virtqueue_add_sgs(vi->cvq, sgs, out_num, 1, ctrl, GFP_ATOMIC);
3600 if (ret < 0) {
3601 dev_warn(&vi->vdev->dev, "Failed to add sgs for command vq: %d\n.", ret);
3602 return false;
3603 }
3604
3605 virtqueue_kick(vi->cvq);
3606
3607 ctrl->usable = false;
3608 vi->cvq_cmd_nums++;
3609
3610 return true;
3611 }
3612
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-01-19 10:31 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-16 13:11 [PATCH net-next 0/3] virtio-net: a fix and some updates for virtio dim Heng Qi
2024-01-16 13:11 ` [PATCH net-next 1/3] virtio-net: fix possible dim status unrecoverable Heng Qi
2024-01-16 13:15 ` Michael S. Tsirkin
2024-01-17 3:34 ` Heng Qi
2024-01-16 13:11 ` [PATCH net-next 2/3] virtio-net: batch dim request Heng Qi
2024-01-16 19:49 ` Simon Horman
2024-01-17 3:38 ` Heng Qi
2024-01-16 13:11 ` [PATCH net-next 3/3] virtio-net: reduce the CPU consumption of dim worker Heng Qi
2024-01-16 19:56 ` Simon Horman
2024-01-17 3:41 ` Heng Qi
2024-01-19 10:31 ` kernel test robot [this message]
2024-01-19 13:43 ` kernel test robot
2024-01-22 7:19 ` Xuan Zhuo
2024-01-22 7:42 ` Xuan Zhuo
2024-01-19 12:28 ` [PATCH net-next 0/3] virtio-net: a fix and some updates for virtio dim Michael S. Tsirkin
2024-01-19 14:20 ` Heng Qi
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=202401191807.RIhMHJ4U-lkp@intel.com \
--to=lkp@intel.com \
--cc=edumazet@google.com \
--cc=hengqi@linux.alibaba.com \
--cc=jasowang@redhat.com \
--cc=kuba@kernel.org \
--cc=llvm@lists.linux.dev \
--cc=mst@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pabeni@redhat.com \
--cc=virtualization@lists.linux.dev \
--cc=xuanzhuo@linux.alibaba.com \
/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.