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.5-rc6 next-20200117]
[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/20200117-170243
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git linux-next
config: nios2-randconfig-a001-20200117 (attached as .config)
compiler: nios2-linux-gcc (GCC) 7.5.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=7.5.0 make.cross ARCH=nios2 

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

All errors (new ones prefixed by >>):

   drivers/vhost/vringh.o: In function `iotlb_translate':
>> drivers/vhost/vringh.c:1079: undefined reference to `vhost_iotlb_itree_first'
   drivers/vhost/vringh.c:1079:(.text+0x45c): relocation truncated to fit: 
R_NIOS2_CALL26 against `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 kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org Intel Corporation

Attachment: .config.gz
Description: application/gzip

_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

Reply via email to