kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Jason Wang <jasowang@redhat.com>
Cc: kbuild-all@lists.01.org, mst@redhat.com,
	linux-kernel@vger.kernel.org, kvm@vger.kernel.org,
	virtualization@lists.linux-foundation.org,
	netdev@vger.kernel.org
Subject: Re: [PATCH V6 3/8] vringh: IOTLB support
Date: Thu, 19 Mar 2020 00:49:35 +0800	[thread overview]
Message-ID: <202003190001.rLHmXLBZ%lkp@intel.com> (raw)
In-Reply-To: <20200318080327.21958-4-jasowang@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 2505 bytes --]

Hi Jason,

I love your patch! Yet something to improve:

[auto build test ERROR on vhost/linux-next]
[also build test ERROR on linux/master linus/master v5.6-rc6 next-20200317]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    https://github.com/0day-ci/linux/commits/Jason-Wang/vDPA-support/20200318-191435
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next
config: h8300-randconfig-a001-20200318 (attached as .config)
compiler: h8300-linux-gcc (GCC) 9.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        GCC_VERSION=9.2.0 make.cross ARCH=h8300 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   h8300-linux-ld: drivers/vhost/vringh.o: in function `iotlb_translate':
>> drivers/vhost/vringh.c:1079: undefined reference to `vhost_iotlb_itree_first'

vim +1079 drivers/vhost/vringh.c

  1061	
  1062	static int iotlb_translate(const struct vringh *vrh,
  1063				   u64 addr, u64 len, struct bio_vec iov[],
  1064				   int iov_size, u32 perm)
  1065	{
  1066		struct vhost_iotlb_map *map;
  1067		struct vhost_iotlb *iotlb = vrh->iotlb;
  1068		int ret = 0;
  1069		u64 s = 0;
  1070	
  1071		while (len > s) {
  1072			u64 size, pa, pfn;
  1073	
  1074			if (unlikely(ret >= iov_size)) {
  1075				ret = -ENOBUFS;
  1076				break;
  1077			}
  1078	
> 1079			map = vhost_iotlb_itree_first(iotlb, addr,
  1080						      addr + len - 1);
  1081			if (!map || map->start > addr) {
  1082				ret = -EINVAL;
  1083				break;
  1084			} else if (!(map->perm & perm)) {
  1085				ret = -EPERM;
  1086				break;
  1087			}
  1088	
  1089			size = map->size - addr + map->start;
  1090			pa = map->addr + addr - map->start;
  1091			pfn = pa >> PAGE_SHIFT;
  1092			iov[ret].bv_page = pfn_to_page(pfn);
  1093			iov[ret].bv_len = min(len - s, size);
  1094			iov[ret].bv_offset = pa & (PAGE_SIZE - 1);
  1095			s += size;
  1096			addr += size;
  1097			++ret;
  1098		}
  1099	
  1100		return ret;
  1101	}
  1102	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 20434 bytes --]

  reply	other threads:[~2020-03-18 16:50 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-18  8:03 [PATCH V6 0/8] vDPA support Jason Wang
2020-03-18  8:03 ` [PATCH V6 1/8] vhost: allow per device message handler Jason Wang
2020-03-18  8:03 ` [PATCH V6 2/8] vhost: factor out IOTLB Jason Wang
2020-03-18  8:03 ` [PATCH V6 3/8] vringh: IOTLB support Jason Wang
2020-03-18 16:49   ` kbuild test robot [this message]
2020-03-18 19:48   ` kbuild test robot
2020-03-18  8:03 ` [PATCH V6 4/8] vDPA: introduce vDPA bus Jason Wang
2020-03-18  8:03 ` [PATCH V6 5/8] virtio: introduce a vDPA based transport Jason Wang
2020-03-18  8:03 ` [PATCH V6 6/8] vhost: introduce vDPA-based backend Jason Wang
2020-03-18  8:03 ` [PATCH V6 7/8] vdpasim: vDPA device simulator Jason Wang
2020-03-18  8:03 ` [PATCH V6 8/8] virtio: Intel IFC VF driver for VDPA Jason Wang
2020-03-18 12:22   ` Jason Gunthorpe
2020-03-19  7:28     ` Zhu Lingshan
2020-03-19  8:14     ` Jason Wang
2020-03-19 13:02       ` Jason Gunthorpe
2020-03-20  9:17         ` Jason Wang
2020-03-18 13:24   ` kbuild test robot
2020-03-18 13:30   ` kbuild test robot

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=202003190001.rLHmXLBZ%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jasowang@redhat.com \
    --cc=kbuild-all@lists.01.org \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mst@redhat.com \
    --cc=netdev@vger.kernel.org \
    --cc=virtualization@lists.linux-foundation.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).