[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210180926.eZiHLMxu-lkp@intel.com>
Date: Tue, 18 Oct 2022 09:26:58 +0800
From: kernel test robot <lkp@...el.com>
To: Anup Patel <apatel@...tanamicro.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [avpatel:riscv_sbi_nested_v1 40/43] arch/riscv/kvm/mmu.c:757:9:
sparse: sparse: incorrect type in assignment (different base types)
tree: https://github.com/avpatel/linux.git riscv_sbi_nested_v1
head: dbf52c86cc3d8cadf34862d5d8f7734e92081d1d
commit: 800e36c4a755db2cadc7e5c08a9798b6eabc2e77 [40/43] RISC-V: KVM: Use nacl_csr_xyz() for accessing CSRs in run-loop
config: riscv-randconfig-s041-20221018
compiler: riscv64-linux-gcc (GCC) 12.1.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-39-gce1a6720-dirty
# https://github.com/avpatel/linux/commit/800e36c4a755db2cadc7e5c08a9798b6eabc2e77
git remote add avpatel https://github.com/avpatel/linux.git
git fetch --no-tags avpatel riscv_sbi_nested_v1
git checkout 800e36c4a755db2cadc7e5c08a9798b6eabc2e77
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=riscv SHELL=/bin/bash arch/riscv/kvm/ drivers/hid/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
sparse warnings: (new ones prefixed by >>)
WARNING: invalid argument to '-march': '_zihintpause'
>> arch/riscv/kvm/mmu.c:757:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long @@ got restricted __le64 [usertype] @@
arch/riscv/kvm/mmu.c:757:9: sparse: expected unsigned long
arch/riscv/kvm/mmu.c:757:9: sparse: got restricted __le64 [usertype]
--
WARNING: invalid argument to '-march': '_zihintpause'
arch/riscv/kvm/vcpu.c:25:49: sparse: sparse: array of flexible structures
arch/riscv/kvm/vcpu.c: note: in included file:
include/linux/kvm_host.h:1906:56: sparse: sparse: array of flexible structures
>> arch/riscv/kvm/vcpu.c:769:21: sparse: sparse: cast to restricted __le64
arch/riscv/kvm/vcpu.c:772:16: sparse: sparse: cast to restricted __le64
>> arch/riscv/kvm/vcpu.c:909:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long @@ got restricted __le64 [usertype] @@
arch/riscv/kvm/vcpu.c:909:9: sparse: expected unsigned long
arch/riscv/kvm/vcpu.c:909:9: sparse: got restricted __le64 [usertype]
arch/riscv/kvm/vcpu.c:922:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long @@ got restricted __le64 [usertype] @@
arch/riscv/kvm/vcpu.c:922:17: sparse: expected unsigned long
arch/riscv/kvm/vcpu.c:922:17: sparse: got restricted __le64 [usertype]
arch/riscv/kvm/vcpu.c:923:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long @@ got restricted __le64 [usertype] @@
arch/riscv/kvm/vcpu.c:923:17: sparse: expected unsigned long
arch/riscv/kvm/vcpu.c:923:17: sparse: got restricted __le64 [usertype]
arch/riscv/kvm/vcpu.c:924:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long @@ got restricted __le64 [usertype] @@
arch/riscv/kvm/vcpu.c:924:17: sparse: expected unsigned long
arch/riscv/kvm/vcpu.c:924:17: sparse: got restricted __le64 [usertype]
arch/riscv/kvm/vcpu.c:925:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long @@ got restricted __le64 [usertype] @@
arch/riscv/kvm/vcpu.c:925:17: sparse: expected unsigned long
arch/riscv/kvm/vcpu.c:925:17: sparse: got restricted __le64 [usertype]
arch/riscv/kvm/vcpu.c:926:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long @@ got restricted __le64 [usertype] @@
arch/riscv/kvm/vcpu.c:926:17: sparse: expected unsigned long
arch/riscv/kvm/vcpu.c:926:17: sparse: got restricted __le64 [usertype]
arch/riscv/kvm/vcpu.c:927:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long @@ got restricted __le64 [usertype] @@
arch/riscv/kvm/vcpu.c:927:17: sparse: expected unsigned long
arch/riscv/kvm/vcpu.c:927:17: sparse: got restricted __le64 [usertype]
arch/riscv/kvm/vcpu.c:928:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long @@ got restricted __le64 [usertype] @@
arch/riscv/kvm/vcpu.c:928:17: sparse: expected unsigned long
arch/riscv/kvm/vcpu.c:928:17: sparse: got restricted __le64 [usertype]
arch/riscv/kvm/vcpu.c:929:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long @@ got restricted __le64 [usertype] @@
arch/riscv/kvm/vcpu.c:929:17: sparse: expected unsigned long
arch/riscv/kvm/vcpu.c:929:17: sparse: got restricted __le64 [usertype]
arch/riscv/kvm/vcpu.c:930:17: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long @@ got restricted __le64 [usertype] @@
arch/riscv/kvm/vcpu.c:930:17: sparse: expected unsigned long
arch/riscv/kvm/vcpu.c:930:17: sparse: got restricted __le64 [usertype]
arch/riscv/kvm/vcpu.c:975:33: sparse: sparse: cast to restricted __le64
arch/riscv/kvm/vcpu.c:976:29: sparse: sparse: cast to restricted __le64
arch/riscv/kvm/vcpu.c:977:31: sparse: sparse: cast to restricted __le64
arch/riscv/kvm/vcpu.c:978:34: sparse: sparse: cast to restricted __le64
arch/riscv/kvm/vcpu.c:979:30: sparse: sparse: cast to restricted __le64
arch/riscv/kvm/vcpu.c:980:32: sparse: sparse: cast to restricted __le64
arch/riscv/kvm/vcpu.c:981:31: sparse: sparse: cast to restricted __le64
arch/riscv/kvm/vcpu.c:982:29: sparse: sparse: cast to restricted __le64
arch/riscv/kvm/vcpu.c:983:30: sparse: sparse: cast to restricted __le64
arch/riscv/kvm/vcpu.c:1046:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long @@ got restricted __le64 [usertype] @@
arch/riscv/kvm/vcpu.c:1046:9: sparse: expected unsigned long
arch/riscv/kvm/vcpu.c:1046:9: sparse: got restricted __le64 [usertype]
arch/riscv/kvm/vcpu.c:1064:26: sparse: sparse: cast to restricted __le64
arch/riscv/kvm/vcpu.c:1064:26: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long @@ got restricted __le64 [usertype] @@
arch/riscv/kvm/vcpu.c:1064:26: sparse: expected unsigned long
arch/riscv/kvm/vcpu.c:1064:26: sparse: got restricted __le64 [usertype]
arch/riscv/kvm/vcpu.c:1193:30: sparse: sparse: cast to restricted __le64
arch/riscv/kvm/vcpu.c:1194:31: sparse: sparse: cast to restricted __le64
include/linux/kvm_host.h:2059:34: sparse: sparse: context imbalance in 'kvm_riscv_check_vcpu_requests' - unexpected unlock
--
WARNING: invalid argument to '-march': '_zihintpause'
>> arch/riscv/kvm/vcpu_timer.c:78:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long @@ got restricted __le64 [usertype] @@
arch/riscv/kvm/vcpu_timer.c:78:9: sparse: expected unsigned long
arch/riscv/kvm/vcpu_timer.c:78:9: sparse: got restricted __le64 [usertype]
arch/riscv/kvm/vcpu_timer.c:296:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long @@ got restricted __le64 [usertype] @@
arch/riscv/kvm/vcpu_timer.c:296:9: sparse: expected unsigned long
arch/riscv/kvm/vcpu_timer.c:296:9: sparse: got restricted __le64 [usertype]
arch/riscv/kvm/vcpu_timer.c:313:9: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long @@ got restricted __le64 [usertype] @@
arch/riscv/kvm/vcpu_timer.c:313:9: sparse: expected unsigned long
arch/riscv/kvm/vcpu_timer.c:313:9: sparse: got restricted __le64 [usertype]
>> arch/riscv/kvm/vcpu_timer.c:335:26: sparse: sparse: cast to restricted __le64
vim +757 arch/riscv/kvm/mmu.c
747
748 void kvm_riscv_gstage_update_hgatp(struct kvm_vcpu *vcpu)
749 {
750 unsigned long hgatp = gstage_mode;
751 struct kvm_arch *k = &vcpu->kvm->arch;
752
753 hgatp |= (READ_ONCE(k->vmid.vmid) << HGATP_VMID_SHIFT) &
754 HGATP_VMID_MASK;
755 hgatp |= (k->pgd_phys >> PAGE_SHIFT) & HGATP_PPN;
756
> 757 nacl_csr_write(CSR_HGATP, hgatp);
758
759 if (!kvm_riscv_gstage_vmid_bits())
760 kvm_riscv_local_hfence_gvma_all();
761 }
762
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (165443 bytes)
Powered by blists - more mailing lists