[broonie-ci:arm64-gcs 5/9] arch/arm64/include/asm/kvm_nested.h:281:3: error: use of undeclared identifier 'elr'

kernel test robot <[email protected]> Sat, 18 Jul 2026 10:33:13 +0800
Newsgroups dev.linux.lists.llvm,dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/ci.git arm64-gcs
head:   a26aa760586e73f8bb0a6cf67438ad0d89c486f5
commit: b2c35cdee47a019777aa9f9216b49a6392cc79e3 [5/9] KVM: arm64: Validate GCS exception lock when emulating ERET
config: arm64-randconfig-004-20260718 (https://download.01.org/0day-ci/archive/20260718/[email protected]/config)
compiler: clang version 21.1.8 (https://github.com/llvm/llvm-project 2078da43e25a4623cab2d0d60decddf709aaea28)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260718/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

   In file included from arch/arm64/kernel/smp.c:46:
   In file included from arch/arm64/include/asm/kvm_mmu.h:99:
   In file included from arch/arm64/include/asm/kvm_emulate.h:21:
>> arch/arm64/include/asm/kvm_nested.h:281:3: error: use of undeclared identifier 'elr'
     281 |         *elr = 0xbad9acc0debadbad;
         |          ^~~
   1 error generated.


vim +/elr +281 arch/arm64/include/asm/kvm_nested.h

   274	
   275	#else
   276	static inline bool kvm_check_illegal_exlock_return(struct kvm_vcpu *vcpu,
   277							   u64 spsr)
   278	{
   279		/* We really should never execute this... */
   280		WARN_ON_ONCE(1);
 > 281		*elr = 0xbad9acc0debadbad;
   282		return false;
   283	}
   284	#endif
   285	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki