[arm-platforms:kvm-arm64/mmu/guest-MMIO-guard 21/24] arch/arm64/kvm/arm.c:2167:14: error: use of undeclared identifier 'KVM_MODE_LOCKEDOUT'
kernel test robot
lkp at intel.com
Fri Jul 2 09:52:18 PDT 2021
tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git kvm-arm64/mmu/guest-MMIO-guard
head: 3cbd5a23fca3da4029dbf592dc302220b2a3871f
commit: 4801ab4f788ae3b26a4e4da246932b27007f9c43 [21/24] arm64: Implement ioremap/iounmap hooks calling into KVM's MMIO guard
config: arm64-randconfig-r001-20210702 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 9eb613b2de3163686b1a4bd1160f15ac56a4b083)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/commit/?id=4801ab4f788ae3b26a4e4da246932b27007f9c43
git remote add arm-platforms https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git
git fetch --no-tags arm-platforms kvm-arm64/mmu/guest-MMIO-guard
git checkout 4801ab4f788ae3b26a4e4da246932b27007f9c43
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=arm64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
All errors (new ones prefixed by >>):
>> arch/arm64/kvm/arm.c:2167:14: error: use of undeclared identifier 'KVM_MODE_LOCKEDOUT'
kvm_mode = KVM_MODE_LOCKEDOUT;
^
1 error generated.
vim +/KVM_MODE_LOCKEDOUT +2167 arch/arm64/kvm/arm.c
2152
2153 static int __init early_kvm_mode_cfg(char *arg)
2154 {
2155 if (!arg)
2156 return -EINVAL;
2157
2158 if (strcmp(arg, "protected") == 0) {
2159 kvm_mode = KVM_MODE_PROTECTED;
2160 return 0;
2161 }
2162
2163 if (strcmp(arg, "nvhe") == 0 && !WARN_ON(is_kernel_in_hyp_mode()))
2164 return 0;
2165
2166 if (strcmp(arg, "lockedout") == 0 && !WARN_ON(is_kernel_in_hyp_mode())) {
> 2167 kvm_mode = KVM_MODE_LOCKEDOUT;
2168 return 0;
2169 }
2170
2171 return -EINVAL;
2172 }
2173 early_param("kvm-arm.mode", early_kvm_mode_cfg);
2174
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 34441 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20210703/e0e65326/attachment-0001.gz>
More information about the linux-arm-kernel
mailing list