Linux s390 Architecture development
 help / color / mirror / Atom feed
* [kvms390:sae 53/55] arch/s390/kvm/arm64/arm.c:232:13: warning: variable 'ret' set but not used
@ 2026-05-08 13:22 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-05-08 13:22 UTC (permalink / raw)
  To: Steffen Eiden; +Cc: oe-kbuild-all, linux-s390

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux.git sae
head:   23885833f845ad11c99c4f458692250fc75908c5
commit: f41388cd69dc147f0e8f0aeeebc40eb8d19b6745 [53/55] KVM; s390: arm64: Implement sysreg handling
config: s390-allyesconfig (https://download.01.org/0day-ci/archive/20260508/202605082137.4rqrVNVY-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260508/202605082137.4rqrVNVY-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/202605082137.4rqrVNVY-lkp@intel.com/

All warnings (new ones prefixed by >>):

   arch/s390/kvm/arm64/arm.c: In function 'kvm_arch_vcpu_run_pid_change':
>> arch/s390/kvm/arm64/arm.c:232:13: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
     232 |         int ret;
         |             ^~~


vim +/ret +232 arch/s390/kvm/arm64/arm.c

   228	
   229	int kvm_arch_vcpu_run_pid_change(struct kvm_vcpu *vcpu)
   230	{
   231		struct kvm *kvm = vcpu->kvm;
 > 232		int ret;
   233	
   234		if (!kvm_vcpu_initialized(vcpu))
   235			return -ENOEXEC;
   236	
   237		if (!kvm_arm_vcpu_is_finalized(vcpu))
   238			return -EPERM;
   239	
   240		if (likely(READ_ONCE(vcpu->pid)))
   241			return 0;
   242	
   243		ret = kvm_finalize_sys_regs(vcpu);
   244	
   245		mutex_lock(&kvm->arch.config_lock);
   246		set_bit(KVM_ARCH_FLAG_HAS_RAN_ONCE, &kvm->arch.flags);
   247		mutex_unlock(&kvm->arch.config_lock);
   248	
   249		return 0;
   250	}
   251	

-- 
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-05-08 13:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-08 13:22 [kvms390:sae 53/55] arch/s390/kvm/arm64/arm.c:232:13: warning: variable 'ret' set but not used kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox