All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Sascha Bischoff <Sascha.Bischoff@arm.com>
Cc: oe-kbuild-all@lists.linux.dev, Marc Zyngier <maz@kernel.org>
Subject: [linux-next:master 4811/17742] arch/arm64/kvm/vgic/vgic-irs-v5.c:1016:15: warning: variable 'addr' set but not used
Date: Wed, 21 Oct 2026 03:05:05 +0800	[thread overview]
Message-ID: <202610210232.uzFGXnjw-lkp@intel.com> (raw)

Hi Sascha,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   3d229ce89862b8e82d71a9e11d6f840ca272a6d6
commit: 71091136d1452b6125579b210d29efec3e79681a [4811/17742] KVM: arm64: gic-v5: Handle userspace accesses to IRS MMIO region
config: arm64-defconfig (https://download.01.org/0day-ci/archive/20261021/202610210232.uzFGXnjw-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 16.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261021/202610210232.uzFGXnjw-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/202610210232.uzFGXnjw-lkp@intel.com/

All warnings (new ones prefixed by >>):

   arch/arm64/kvm/vgic/vgic-irs-v5.c: In function 'vgic_v5_has_attr_regs':
>> arch/arm64/kvm/vgic/vgic-irs-v5.c:1016:15: warning: variable 'addr' set but not used [-Wunused-but-set-variable=]
    1016 |         gpa_t addr, offset;
         |               ^~~~


vim +/addr +1016 arch/arm64/kvm/vgic/vgic-irs-v5.c

  1010	
  1011	int vgic_v5_has_attr_regs(struct kvm_device *dev, struct kvm_device_attr *attr)
  1012	{
  1013		const struct vgic_register_region *region;
  1014		struct vgic_reg_attr reg_attr;
  1015		struct kvm_vcpu *vcpu;
> 1016		gpa_t addr, offset;
  1017		int ret, align;
  1018	
  1019		ret = vgic_v5_parse_attr(dev, attr, &reg_attr);
  1020		if (ret)
  1021			return ret;
  1022	
  1023		vcpu = reg_attr.vcpu;
  1024		addr = reg_attr.addr;
  1025	
  1026		if (attr->group == KVM_DEV_ARM_VGIC_GRP_CPU_SYSREGS)
  1027			return vgic_v5_has_cpu_sysregs_attr(vcpu, attr);
  1028	
  1029		offset = attr->attr;
  1030	
  1031		region = vgic_find_mmio_region(vgic_v5_irs_registers,
  1032					       ARRAY_SIZE(vgic_v5_irs_registers),
  1033					       offset);
  1034		if (!region)
  1035			return -ENXIO;
  1036	
  1037		align = region->access_flags & VGIC_ACCESS_64bit ? 0x7 : 0x3;
  1038		if (offset & align)
  1039			return -EINVAL;
  1040	
  1041		return 0;
  1042	}
  1043	

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

                 reply	other threads:[~2026-10-20 19:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202610210232.uzFGXnjw-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Sascha.Bischoff@arm.com \
    --cc=maz@kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.