* [akpm-mm:mm-new 102/124] lib/maple_tree.c:3364:38: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2026-02-04 10:05 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-02-04 10:05 UTC (permalink / raw)
To: Liam R. Howlett
Cc: oe-kbuild-all, David Hildenbrand, Andrew Morton,
Linux Memory Management List
tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-new
head: 3b688128ee79df55807d8b3e60e9d0ed62db009d
commit: 8b56f4dfdf0a4aa460fde0212eb270c943288bfa [102/124] maple_tree-add-cp_is_new_root-helper-fix
config: csky-randconfig-r122-20260204 (https://download.01.org/0day-ci/archive/20260204/202602041809.nfXcWI84-lkp@intel.com/config)
compiler: csky-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260204/202602041809.nfXcWI84-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/202602041809.nfXcWI84-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> lib/maple_tree.c:3364:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void [noderef] __rcu **slot @@ got void [noderef] __rcu * @@
lib/maple_tree.c:3364:38: sparse: expected void [noderef] __rcu **slot
lib/maple_tree.c:3364:38: sparse: got void [noderef] __rcu *
vim +3364 lib/maple_tree.c
3339
3340 static inline bool cp_is_new_root(struct maple_copy *cp, struct ma_state *mas)
3341 {
3342 if (cp->min || cp->max != ULONG_MAX)
3343 return false;
3344
3345 if (cp->d_count != 1) {
3346 enum maple_type mt = maple_arange_64;
3347
3348 if (!mt_is_alloc(mas->tree))
3349 mt = maple_range_64;
3350
3351 cp->data = cp->d_count;
3352 cp->s_count = 0;
3353 dst_setup(cp, mas, mt);
3354 init_cp_src(cp);
3355 node_copy(mas, cp->src[0].node, 0, cp->data, cp->max, maple_copy,
3356 cp->dst[0].node, 0, mt);
3357 node_finalise(cp->dst[0].node, mt, cp->end + 1);
3358 /*
3359 * Warning, see cp_leaf_init() comment and rcu_assign_pointer()
3360 * documentation. Since this is a new root, there are no
3361 * read-side operations that can view it until it is insert into
3362 * the tree after an rcu_assign_pointer() call.
3363 */
> 3364 ma_init_slot(cp->slot[0], cp->dst[0].node, mt);
3365 cp->height++;
3366 }
3367 WARN_ON_ONCE(cp->dst[0].node != mte_to_node(
3368 mt_slot_locked(mas->tree, cp->slot, 0)));
3369 cp->dst[0].node->parent = ma_parent_ptr(mas_tree_parent(mas));
3370 mas->min = 0;
3371 mas->max = ULONG_MAX;
3372 mas->depth = 0;
3373 mas->node = mas_root_locked(mas);
3374 return true;
3375 }
3376
--
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-02-04 10:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-04 10:05 [akpm-mm:mm-new 102/124] lib/maple_tree.c:3364:38: sparse: sparse: incorrect type in argument 1 (different address spaces) kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox