* [kkdwivedi:rqspinlock-owner 25/25] kernel/bpf/rqspinlock.c:98:17: sparse: sparse: incorrect type in initializer (different address spaces)
@ 2026-10-16 15:54 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-16 15:54 UTC (permalink / raw)
To: Kumar Kartikeya Dwivedi; +Cc: oe-kbuild-all
tree: https://github.com/kkdwivedi/linux rqspinlock-owner
head: b7b5b7c8a79dfa5564b7f98ad4691e53e1de0123
commit: ae7807cc237a7422d939f3692b9a3095a10ef881 [25/25] rqspinlock: Cache the owner value in the held-locks table
config: i386-randconfig-2300-20261016 (https://download.01.org/0day-ci/archive/20261016/202610161715.UkQUIkfo-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261016/202610161715.UkQUIkfo-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/202610161715.UkQUIkfo-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> kernel/bpf/rqspinlock.c:98:17: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got unsigned int * @@
kernel/bpf/rqspinlock.c:98:17: sparse: expected void const [noderef] __percpu *__vpp_verify
kernel/bpf/rqspinlock.c:98:17: sparse: got unsigned int *
kernel/bpf/rqspinlock.c:112:39: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got struct rqspinlock_held * @@
kernel/bpf/rqspinlock.c:112:39: sparse: expected void const [noderef] __percpu *__vpp_verify
kernel/bpf/rqspinlock.c:112:39: sparse: got struct rqspinlock_held *
kernel/bpf/rqspinlock.c:133:39: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got struct rqspinlock_held * @@
kernel/bpf/rqspinlock.c:133:39: sparse: expected void const [noderef] __percpu *__vpp_verify
kernel/bpf/rqspinlock.c:133:39: sparse: got struct rqspinlock_held *
kernel/bpf/rqspinlock.c:146:51: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got struct rqspinlock_held * @@
kernel/bpf/rqspinlock.c:146:51: sparse: expected void const [noderef] __percpu *__vpp_verify
kernel/bpf/rqspinlock.c:146:51: sparse: got struct rqspinlock_held *
kernel/bpf/rqspinlock.c:681:39: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected void const [noderef] __percpu *__vpp_verify @@ got struct rqspinlock_held * @@
kernel/bpf/rqspinlock.c:681:39: sparse: expected void const [noderef] __percpu *__vpp_verify
kernel/bpf/rqspinlock.c:681:39: sparse: got struct rqspinlock_held *
kernel/bpf/rqspinlock.c:705:17: sparse: sparse: symbol 'bpf_res_spin_lock' was not declared. Should it be static?
kernel/bpf/rqspinlock.c:721:18: sparse: sparse: symbol 'bpf_res_spin_unlock' was not declared. Should it be static?
kernel/bpf/rqspinlock.c:727:17: sparse: sparse: symbol 'bpf_res_spin_lock_irqsave' was not declared. Should it be static?
kernel/bpf/rqspinlock.c:746:18: sparse: sparse: symbol 'bpf_res_spin_unlock_irqrestore' was not declared. Should it be static?
vim +98 kernel/bpf/rqspinlock.c
85
86 /*
87 * Fill in each CPU's owner value for the lock word. Per-CPU memory for every
88 * possible CPU exists from setup_per_cpu_areas() on, and an early initcall
89 * runs before secondary CPUs are brought up and long before user space, which
90 * is what every rqspinlock user needs to issue an acquisition. A copy left at
91 * zero would still form a valid lock word (see struct rqspinlock_held).
92 */
93 static int __init rqspinlock_init_owner(void)
94 {
95 int cpu;
96
97 for_each_possible_cpu(cpu)
> 98 per_cpu(rqspinlock_held_locks.owner, cpu) = cpu << RQ_OWNER_OFFSET;
99 return 0;
100 }
101 early_initcall(rqspinlock_init_owner);
102
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-16 15:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-16 15:54 [kkdwivedi:rqspinlock-owner 25/25] kernel/bpf/rqspinlock.c:98:17: sparse: sparse: incorrect type in initializer (different address spaces) kernel test robot
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.