tree: https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue head: e9c16c78503dd0482b876761d60a3d2f50ac4d86 commit: e45adf665a53df0db37f784ed87c6b57ddd81885 [52/65] KVM: Introduce a new guest mapping API config: arm64-defconfig (attached as .config) compiler: aarch64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.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 e45adf665a53df0db37f784ed87c6b57ddd81885 # save the attached .config to linux build tree GCC_VERSION=7.2.0 make.cross ARCH=arm64 If you fix the issue, kindly add following tag Reported-by: kbuild test robot <lkp@xxxxxxxxx> All errors (new ones prefixed by >>): arch/arm64/kvm/../../../virt/kvm/kvm_main.c: In function '__kvm_map_gfn': >> arch/arm64/kvm/../../../virt/kvm/kvm_main.c:1763:9: error: implicit declaration of function 'memremap'; did you mean 'memset_p'? [-Werror=implicit-function-declaration] hva = memremap(pfn_to_hpa(pfn), PAGE_SIZE, MEMREMAP_WB); ^~~~~~~~ memset_p arch/arm64/kvm/../../../virt/kvm/kvm_main.c:1763:46: error: 'MEMREMAP_WB' undeclared (first use in this function) hva = memremap(pfn_to_hpa(pfn), PAGE_SIZE, MEMREMAP_WB); ^~~~~~~~~~~ arch/arm64/kvm/../../../virt/kvm/kvm_main.c:1763:46: note: each undeclared identifier is reported only once for each function it appears in arch/arm64/kvm/../../../virt/kvm/kvm_main.c: In function 'kvm_vcpu_unmap': arch/arm64/kvm/../../../virt/kvm/kvm_main.c:1795:3: error: implicit declaration of function 'memunmap'; did you mean 'vm_munmap'? [-Werror=implicit-function-declaration] memunmap(map->hva); ^~~~~~~~ vm_munmap cc1: some warnings being treated as errors vim +1763 arch/arm64/kvm/../../../virt/kvm/kvm_main.c 1744 1745 static int __kvm_map_gfn(struct kvm_memory_slot *slot, gfn_t gfn, 1746 struct kvm_host_map *map) 1747 { 1748 kvm_pfn_t pfn; 1749 void *hva = NULL; 1750 struct page *page = KVM_UNMAPPED_PAGE; 1751 1752 if (!map) 1753 return -EINVAL; 1754 1755 pfn = gfn_to_pfn_memslot(slot, gfn); 1756 if (is_error_noslot_pfn(pfn)) 1757 return -EINVAL; 1758 1759 if (pfn_valid(pfn)) { 1760 page = pfn_to_page(pfn); 1761 hva = kmap(page); 1762 } else { > 1763 hva = memremap(pfn_to_hpa(pfn), PAGE_SIZE, MEMREMAP_WB); 1764 } 1765 1766 if (!hva) 1767 return -EFAULT; 1768 1769 map->page = page; 1770 map->hva = hva; 1771 map->pfn = pfn; 1772 map->gfn = gfn; 1773 1774 return 0; 1775 } 1776 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip