[kvms390:protvirtv2 12/42] arch/s390/kvm/interrupt.c:2383:9: error: implicit declaration of function 'uv_convert_to_secure_pinned'; did you mean 'uv_convert_to_secure'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux.git protvirtv2
head:   657e815c2839c2852b87e5909e9bfd650cc3506d
commit: 176ad8c3e9d974c68dd23cbd70a6f8542c1a2626 [12/42] interrupt page
config: s390-alldefconfig (attached as .config)
compiler: s390-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
        git checkout 176ad8c3e9d974c68dd23cbd70a6f8542c1a2626
        # save the attached .config to linux build tree
        GCC_VERSION=7.5.0 make.cross ARCH=s390 

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

All errors (new ones prefixed by >>):

   arch/s390/kvm/interrupt.c: In function 'kvm_s390_adapter_map':
>> arch/s390/kvm/interrupt.c:2383:9: error: implicit declaration of function 'uv_convert_to_secure_pinned'; did you mean 'uv_convert_to_secure'? [-Werror=implicit-function-declaration]
      ret = uv_convert_to_secure_pinned(kvm->arch.gmap, addr, 1);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
            uv_convert_to_secure
   cc1: some warnings being treated as errors

vim +2383 arch/s390/kvm/interrupt.c

  2356	
  2357	static int kvm_s390_adapter_map(struct kvm *kvm, unsigned int id, __u64 addr)
  2358	{
  2359		struct s390_io_adapter *adapter = get_io_adapter(kvm, id);
  2360		struct s390_map_info *map;
  2361		int ret;
  2362	
  2363		if (!adapter || !addr)
  2364			return -EINVAL;
  2365	
  2366		map = kzalloc(sizeof(*map), GFP_KERNEL);
  2367		if (!map) {
  2368			ret = -ENOMEM;
  2369			goto out;
  2370		}
  2371		INIT_LIST_HEAD(&map->list);
  2372		map->guest_addr = addr;
  2373		map->addr = gmap_translate(kvm->arch.gmap, addr);
  2374		if (map->addr == -EFAULT) {
  2375			ret = -EFAULT;
  2376			goto out;
  2377		}
  2378		ret = get_user_pages_fast(map->addr, 1, FOLL_WRITE, &map->page);
  2379		if (ret < 0)
  2380			goto out;
  2381		BUG_ON(ret != 1);
  2382		do {
> 2383			ret = uv_convert_to_secure_pinned(kvm->arch.gmap, addr, 1);
  2384		} while (ret == -EAGAIN);
  2385		if (ret)
  2386			goto out;
  2387	
  2388		down_write(&adapter->maps_lock);
  2389		if (atomic_inc_return(&adapter->nr_maps) < MAX_S390_ADAPTER_MAPS) {
  2390			list_add_tail(&map->list, &adapter->maps);
  2391			ret = 0;
  2392		} else {
  2393			put_page(map->page);
  2394			ret = -EINVAL;
  2395		}
  2396		up_write(&adapter->maps_lock);
  2397	out:
  2398		if (ret)
  2399			kfree(map);
  2400		return ret;
  2401	}
  2402	

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx Intel Corporation

Attachment: .config.gz
Description: application/gzip


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux