[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202505020704.ohBUEBYk-lkp@intel.com>
Date: Fri, 2 May 2025 07:40:08 +0800
From: kernel test robot <lkp@...el.com>
To: Michael Ellerman <mpe@...erman.id.au>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Madhavan Srinivasan <maddy@...ux.ibm.com>
Subject: arch/powerpc/kvm/book3s_xive.c:357:41: sparse: sparse: incorrect
type in initializer (different base types)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ebd297a2affadb6f6f4d2e5d975c1eda18ac762d
commit: 0305292f17bc1f4fc66a24a8dd1a5e047673c02d powerpc/io: Use generic raw accessors
date: 9 weeks ago
config: powerpc64-randconfig-r122-20250501 (https://download.01.org/0day-ci/archive/20250502/202505020704.ohBUEBYk-lkp@intel.com/config)
compiler: powerpc64-linux-gcc (GCC) 10.5.0
reproduce: (https://download.01.org/0day-ci/archive/20250502/202505020704.ohBUEBYk-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505020704.ohBUEBYk-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
arch/powerpc/kvm/book3s_xive.c:51:15: sparse: sparse: cast to restricted __be16
>> arch/powerpc/kvm/book3s_xive.c:357:41: sparse: sparse: incorrect type in initializer (different base types) @@ expected restricted __be64 [usertype] qw1 @@ got unsigned long long @@
arch/powerpc/kvm/book3s_xive.c:357:41: sparse: expected restricted __be64 [usertype] qw1
arch/powerpc/kvm/book3s_xive.c:357:41: sparse: got unsigned long long
>> arch/powerpc/kvm/book3s_xive.c:701:57: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned long long [usertype] value @@ got restricted __be64 [usertype] w01 @@
arch/powerpc/kvm/book3s_xive.c:701:57: sparse: expected unsigned long long [usertype] value
arch/powerpc/kvm/book3s_xive.c:701:57: sparse: got restricted __be64 [usertype] w01
>> arch/powerpc/kvm/book3s_xive.c:702:32: sparse: sparse: incorrect type in argument 1 (different base types) @@ expected unsigned int [usertype] value @@ got restricted __be32 [usertype] xive_cam_word @@
arch/powerpc/kvm/book3s_xive.c:702:32: sparse: expected unsigned int [usertype] value
arch/powerpc/kvm/book3s_xive.c:702:32: sparse: got restricted __be32 [usertype] xive_cam_word
>> arch/powerpc/kvm/book3s_xive.c:774:49: sparse: sparse: incorrect type in assignment (different base types) @@ expected restricted __be64 [usertype] w01 @@ got unsigned long long @@
arch/powerpc/kvm/book3s_xive.c:774:49: sparse: expected restricted __be64 [usertype] w01
arch/powerpc/kvm/book3s_xive.c:774:49: sparse: got unsigned long long
vim +357 arch/powerpc/kvm/book3s_xive.c
5af50993850a48b Benjamin Herrenschmidt 2017-04-05 335
b22af9041927075 Alexey Kardashevskiy 2022-05-09 336 static unsigned long xive_vm_h_ipoll(struct kvm_vcpu *vcpu, unsigned long server)
b22af9041927075 Alexey Kardashevskiy 2022-05-09 337 {
b22af9041927075 Alexey Kardashevskiy 2022-05-09 338 struct kvmppc_xive_vcpu *xc = vcpu->arch.xive_vcpu;
b22af9041927075 Alexey Kardashevskiy 2022-05-09 339 u8 pending = xc->pending;
b22af9041927075 Alexey Kardashevskiy 2022-05-09 340 u32 hirq;
b22af9041927075 Alexey Kardashevskiy 2022-05-09 341
b22af9041927075 Alexey Kardashevskiy 2022-05-09 342 pr_devel("H_IPOLL(server=%ld)\n", server);
b22af9041927075 Alexey Kardashevskiy 2022-05-09 343
b22af9041927075 Alexey Kardashevskiy 2022-05-09 344 xc->stat_vm_h_ipoll++;
b22af9041927075 Alexey Kardashevskiy 2022-05-09 345
b22af9041927075 Alexey Kardashevskiy 2022-05-09 346 /* Grab the target VCPU if not the current one */
b22af9041927075 Alexey Kardashevskiy 2022-05-09 347 if (xc->server_num != server) {
b22af9041927075 Alexey Kardashevskiy 2022-05-09 348 vcpu = kvmppc_xive_find_server(vcpu->kvm, server);
b22af9041927075 Alexey Kardashevskiy 2022-05-09 349 if (!vcpu)
b22af9041927075 Alexey Kardashevskiy 2022-05-09 350 return H_PARAMETER;
b22af9041927075 Alexey Kardashevskiy 2022-05-09 351 xc = vcpu->arch.xive_vcpu;
b22af9041927075 Alexey Kardashevskiy 2022-05-09 352
b22af9041927075 Alexey Kardashevskiy 2022-05-09 353 /* Scan all priorities */
b22af9041927075 Alexey Kardashevskiy 2022-05-09 354 pending = 0xff;
b22af9041927075 Alexey Kardashevskiy 2022-05-09 355 } else {
b22af9041927075 Alexey Kardashevskiy 2022-05-09 356 /* Grab pending interrupt if any */
b22af9041927075 Alexey Kardashevskiy 2022-05-09 @357 __be64 qw1 = __raw_readq(xive_tima + TM_QW1_OS);
b22af9041927075 Alexey Kardashevskiy 2022-05-09 358 u8 pipr = be64_to_cpu(qw1) & 0xff;
b22af9041927075 Alexey Kardashevskiy 2022-05-09 359
b22af9041927075 Alexey Kardashevskiy 2022-05-09 360 if (pipr < 8)
b22af9041927075 Alexey Kardashevskiy 2022-05-09 361 pending |= 1 << pipr;
b22af9041927075 Alexey Kardashevskiy 2022-05-09 362 }
b22af9041927075 Alexey Kardashevskiy 2022-05-09 363
b22af9041927075 Alexey Kardashevskiy 2022-05-09 364 hirq = xive_vm_scan_interrupts(xc, pending, scan_poll);
b22af9041927075 Alexey Kardashevskiy 2022-05-09 365
b22af9041927075 Alexey Kardashevskiy 2022-05-09 366 /* Return interrupt and old CPPR in GPR4 */
0e85b7df9cb0c65 Jordan Niethe 2023-09-14 367 kvmppc_set_gpr(vcpu, 4, hirq | (xc->cppr << 24));
b22af9041927075 Alexey Kardashevskiy 2022-05-09 368
b22af9041927075 Alexey Kardashevskiy 2022-05-09 369 return H_SUCCESS;
b22af9041927075 Alexey Kardashevskiy 2022-05-09 370 }
b22af9041927075 Alexey Kardashevskiy 2022-05-09 371
:::::: The code at line 357 was first introduced by commit
:::::: b22af9041927075b82bcaf4b6c7a354688198d47 KVM: PPC: Book3s: Remove real mode interrupt controller hcalls handlers
:::::: TO: Alexey Kardashevskiy <aik@...abs.ru>
:::::: CC: Michael Ellerman <mpe@...erman.id.au>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists