kvm_main.c:undefined reference to `memremap'

From: kbuild test robot
Date: Sat May 18 2019 - 12:30:18 EST


Hi Paolo,

It's probably a bug fix that unveils the link errors.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 72cf0b07418a9c8349aa9137194b1ccba6e54a9d
commit: c011d23ba046826ccf8c4a4a6c1d01c9ccaa1403 kvm: fix compilation on aarch64
date: 28 hours ago
config: s390-alldefconfig (attached as .config)
compiler: s390x-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 c011d23ba046826ccf8c4a4a6c1d01c9ccaa1403
# save the attached .config to linux build tree
GCC_VERSION=7.2.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 >>):

s390x-linux-gnu-ld: arch/s390/../../virt/kvm/kvm_main.o: in function `kvm_vcpu_map':
>> kvm_main.c:(.text+0x3e3a): undefined reference to `memremap'
s390x-linux-gnu-ld: arch/s390/../../virt/kvm/kvm_main.o: in function `kvm_vcpu_unmap':
>> kvm_main.c:(.text+0x48be): undefined reference to `memunmap'

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

Attachment: .config.gz
Description: application/gzip