[kvms390:sae-part1 27/27] arch/s390/kvm/arm64/mmu.c:49:16: warning: variable 'esr' set but not used

kernel test robot
2026-04-18T00:53:28Z

tree: https://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux.git sae-part1
head: c8ef958593be02ec09131a1f5e2744a98b6c01a1
commit: c8ef958593be02ec09131a1f5e2744a98b6c01a1 [27/27] KVM: s390: arm64: Enable KVM_ARM64 config and Kbuild
config: s390-randconfig-001-20260418 (https://download.01.org/0day-ci/archive/20260418/202604180812.3JWdnPro-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260418/202604180812.3JWdnPro-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/202604180812.3JWdnPro-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> arch/s390/kvm/arm64/mmu.c:49:16: warning: variable 'esr' set but not used [-Wunused-but-set-variable]
49 | unsigned long esr;
| ^
1 warning generated.

vim +/esr +49 arch/s390/kvm/arm64/mmu.c

1afccc97efeb65f Steffen Eiden 2026-04-02 43
1afccc97efeb65f Steffen Eiden 2026-04-02 44 int kvm_handle_guest_abort(struct kvm_vcpu *vcpu)
1afccc97efeb65f Steffen Eiden 2026-04-02 45 {
1afccc97efeb65f Steffen Eiden 2026-04-02 46 struct kvm_memory_slot *memslot;
1afccc97efeb65f Steffen Eiden 2026-04-02 47 bool translation = false;
1afccc97efeb65f Steffen Eiden 2026-04-02 48 phys_addr_t fault_ipa;
1afccc97efeb65f Steffen Eiden 2026-04-02 @49 unsigned long esr;

:::::: The code at line 49 was first introduced by commit
:::::: 1afccc97efeb65f95d4ed646a34bbd49616169e9 KVM: s390: arm64: Implement basic page fault handler

:::::: TO: Steffen Eiden <seiden@linux.ibm.com>
:::::: CC: Steffen Eiden <seiden@linux.ibm.com>

--
0-DAY CI Kernel Test Service