From: kernel test robot <lkp@intel.com>
To: Anup Patel <anup.patel@oss.qualcomm.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
"Radim Krčmář " <radim.krcmar@oss.qualcomm.com>
Subject: arch/riscv/kvm/vcpu_config.c:81:17: sparse: sparse: incorrect type in assignment (different base types)
Date: Fri, 15 May 2026 12:10:47 +0800 [thread overview]
Message-ID: <202605151113.AA6uGwBL-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 70eda68668d1476b459b64e69b8f36659fa9dfa8
commit: 6ed523e2b6129d7dd4aab801a610930d85b2d3f8 RISC-V: KVM: Factor-out VCPU config into separate sources
date: 6 weeks ago
config: riscv-randconfig-r113-20260515 (https://download.01.org/0day-ci/archive/20260515/202605151113.AA6uGwBL-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 5bac06718f502014fade905512f1d26d578a18f3)
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260515/202605151113.AA6uGwBL-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
| Fixes: 6ed523e2b612 ("RISC-V: KVM: Factor-out VCPU config into separate sources")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202605151113.AA6uGwBL-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
WARNING: invalid argument to '-march': '_zacas_zabha'
>> arch/riscv/kvm/vcpu_config.c:81:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long @@ got restricted __le32 [usertype] @@
arch/riscv/kvm/vcpu_config.c:81:17: sparse: expected unsigned long
arch/riscv/kvm/vcpu_config.c:81:17: sparse: got restricted __le32 [usertype]
arch/riscv/kvm/vcpu_config.c:82:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long @@ got restricted __le32 [usertype] @@
arch/riscv/kvm/vcpu_config.c:82:17: sparse: expected unsigned long
arch/riscv/kvm/vcpu_config.c:82:17: sparse: got restricted __le32 [usertype]
arch/riscv/kvm/vcpu_config.c:83:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long @@ got restricted __le32 [usertype] @@
arch/riscv/kvm/vcpu_config.c:83:17: sparse: expected unsigned long
arch/riscv/kvm/vcpu_config.c:83:17: sparse: got restricted __le32 [usertype]
arch/riscv/kvm/vcpu_config.c:85:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long @@ got restricted __le32 [usertype] @@
arch/riscv/kvm/vcpu_config.c:85:25: sparse: expected unsigned long
arch/riscv/kvm/vcpu_config.c:85:25: sparse: got restricted __le32 [usertype]
arch/riscv/kvm/vcpu_config.c:87:25: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long @@ got restricted __le32 [usertype] @@
arch/riscv/kvm/vcpu_config.c:87:25: sparse: expected unsigned long
arch/riscv/kvm/vcpu_config.c:87:25: sparse: got restricted __le32 [usertype]
arch/riscv/kvm/vcpu_config.c:89:33: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long @@ got restricted __le32 [usertype] @@
arch/riscv/kvm/vcpu_config.c:89:33: sparse: expected unsigned long
arch/riscv/kvm/vcpu_config.c:89:33: sparse: got restricted __le32 [usertype]
vim +81 arch/riscv/kvm/vcpu_config.c
73
74 void kvm_riscv_vcpu_config_load(struct kvm_vcpu *vcpu)
75 {
76 struct kvm_vcpu_config *cfg = &vcpu->arch.cfg;
77 void *nsh;
78
79 if (kvm_riscv_nacl_sync_csr_available()) {
80 nsh = nacl_shmem();
> 81 nacl_csr_write(nsh, CSR_HEDELEG, cfg->hedeleg);
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2026-05-15 4:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-15 4:10 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-05-05 19:05 arch/riscv/kvm/vcpu_config.c:81:17: sparse: sparse: incorrect type in assignment (different base types) kernel test robot
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=202605151113.AA6uGwBL-lkp@intel.com \
--to=lkp@intel.com \
--cc=anup.patel@oss.qualcomm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=radim.krcmar@oss.qualcomm.com \
/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.