From: kernel test robot <lkp@intel.com>
To: "Liam R. Howlett" <Liam.Howlett@oracle.com>
Cc: oe-kbuild-all@lists.linux.dev,
David Hildenbrand <david@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [akpm-mm:mm-new 102/124] lib/maple_tree.c:3364:38: sparse: sparse: incorrect type in argument 1 (different address spaces)
Date: Wed, 04 Feb 2026 18:05:28 +0800 [thread overview]
Message-ID: <202602041809.nfXcWI84-lkp@intel.com> (raw)
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
reply other threads:[~2026-02-04 10:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202602041809.nfXcWI84-lkp@intel.com \
--to=lkp@intel.com \
--cc=Liam.Howlett@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=david@kernel.org \
--cc=linux-mm@kvack.org \
--cc=oe-kbuild-all@lists.linux.dev \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox