All of lore.kernel.org
 help / color / mirror / Atom feed
* [lpieralisi:cca/temp-in-place-conversion 22/102] arch/arm64/kvm/rmi-exit.c:125:24: warning: variable 'index' set but not used
@ 2026-06-24  0:08 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-06-24  0:08 UTC (permalink / raw)
  To: Lorenzo Pieralisi; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/lpieralisi/linux.git cca/temp-in-place-conversion
head:   4095e546cca85e5558a35176ef689959971f7d70
commit: f736036d78bbb34392832ec05f7a41367239f7d0 [22/102] arm64: RMI: Handle realm enter/exit
config: arm64-randconfig-004-20260624 (https://download.01.org/0day-ci/archive/20260624/202606240809.Rhtbtahg-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project a9b492db3d50683e446cd1a5c9ffaf4e92cb77a7)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260624/202606240809.Rhtbtahg-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202606240809.Rhtbtahg-lkp@intel.com/

All warnings (new ones prefixed by >>):

   arch/arm64/kvm/rmi-exit.c:60:23: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
      60 |         [ESR_ELx_EC_SYS64]      = rec_exit_sys_reg,
         |                                   ^~~~~~~~~~~~~~~~
   arch/arm64/kvm/rmi-exit.c:59:27: note: previous initialization is here
      59 |         [0 ... ESR_ELx_EC_MAX]  = rec_exit_reason_notimpl,
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~
   arch/arm64/kvm/rmi-exit.c:61:26: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
      61 |         [ESR_ELx_EC_DABT_LOW]   = rec_exit_sync_dabt,
         |                                   ^~~~~~~~~~~~~~~~~~
   arch/arm64/kvm/rmi-exit.c:59:27: note: previous initialization is here
      59 |         [0 ... ESR_ELx_EC_MAX]  = rec_exit_reason_notimpl,
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~
   arch/arm64/kvm/rmi-exit.c:62:26: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
      62 |         [ESR_ELx_EC_IABT_LOW]   = rec_exit_sync_iabt
         |                                   ^~~~~~~~~~~~~~~~~~
   arch/arm64/kvm/rmi-exit.c:59:27: note: previous initialization is here
      59 |         [0 ... ESR_ELx_EC_MAX]  = rec_exit_reason_notimpl,
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~
>> arch/arm64/kvm/rmi-exit.c:125:24: warning: variable 'index' set but not used [-Wunused-but-set-variable]
     125 |         unsigned long status, index;
         |                               ^
   4 warnings generated.


vim +/index +125 arch/arm64/kvm/rmi-exit.c

   116	
   117	/*
   118	 * Return > 0 to return to guest, < 0 on error, 0 (and set exit_reason) on
   119	 * proper exit to userspace.
   120	 */
   121	int handle_rec_exit(struct kvm_vcpu *vcpu, int rec_run_ret)
   122	{
   123		struct realm_rec *rec = &vcpu->arch.rec;
   124		u8 esr_ec = ESR_ELx_EC(rec->run->exit.esr);
 > 125		unsigned long status, index;

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-24  0:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-24  0:08 [lpieralisi:cca/temp-in-place-conversion 22/102] arch/arm64/kvm/rmi-exit.c:125:24: warning: variable 'index' set but not used 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.