[arm-platforms:kvm-arm64/mmu-pgt 8/27] arch/arm64/kvm/at.c:176:28: warning: variable 'mmu' set but not used

kernel test robot lkp at intel.com
Sat May 18 02:14:29 PDT 2024


tree:   https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git kvm-arm64/mmu-pgt
head:   1ed29f79e7c6441ef29c25a43d7c82d91e884dcc
commit: 0d4dfd08f040c41143701887c95bfa50f78ee701 [8/27] KVM: arm64: nv: Trap and emulate AT instructions from virtual EL2
config: arm64-defconfig (https://download.01.org/0day-ci/archive/20240518/202405181708.rahHctBK-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240518/202405181708.rahHctBK-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 at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202405181708.rahHctBK-lkp@intel.com/

All warnings (new ones prefixed by >>):

   arch/arm64/kvm/at.c: In function '__kvm_at_s1e2':
>> arch/arm64/kvm/at.c:176:28: warning: variable 'mmu' set but not used [-Wunused-but-set-variable]
     176 |         struct kvm_s2_mmu *mmu;
         |                            ^~~


vim +/mmu +176 arch/arm64/kvm/at.c

   173	
   174	void __kvm_at_s1e2(struct kvm_vcpu *vcpu, u32 op, u64 vaddr)
   175	{
 > 176		struct kvm_s2_mmu *mmu;

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



More information about the linux-arm-kernel mailing list