All of lore.kernel.org
 help / color / mirror / Atom feed
* [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'
@ 2021-07-02 16:52 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-07-02 16:52 UTC (permalink / raw)
  To: Marc Zyngier; +Cc: clang-built-linux, kbuild-all, linux-arm-kernel

[-- Attachment #1: Type: text/plain, Size: 2419 bytes --]

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@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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 34441 bytes --]

[-- Attachment #3: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [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'
@ 2021-07-02 16:52 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-07-02 16:52 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2479 bytes --]

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@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(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 34441 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-02 17:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-02 16:52 [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
2021-07-02 16:52 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.