* [liam:maple_marks_v7.2 11/31] lib/maple_tree.c:528:46: sparse: sparse: cast removes address space '__rcu' of expression
@ 2026-06-27 1:04 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-06-27 1:04 UTC (permalink / raw)
To: Liam R. Howlett; +Cc: oe-kbuild-all, Liam R. Howlett (Oracle)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/liam/linux.git maple_marks_v7.2
head: be119ad50e9c87a4a975871d84614f7c6aeaf0de
commit: ff58b13f4f7886645f07ec9b542536362d4b230c [11/31] maple_tree: Add bulk parent set helper
config: nios2-randconfig-r122-20260627 (https://download.01.org/0day-ci/archive/20260627/202606270937.VMOBGtwx-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 8.5.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260627/202606270937.VMOBGtwx-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/202606270937.VMOBGtwx-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> lib/maple_tree.c:528:46: sparse: sparse: cast removes address space '__rcu' of expression
>> lib/maple_tree.c:528:46: sparse: sparse: cast removes address space '__rcu' of expression
>> lib/maple_tree.c:528:46: sparse: sparse: cast removes address space '__rcu' of expression
>> lib/maple_tree.c:528:46: sparse: sparse: cast removes address space '__rcu' of expression
>> lib/maple_tree.c:528:46: sparse: sparse: cast removes address space '__rcu' of expression
>> lib/maple_tree.c:528:46: sparse: sparse: cast removes address space '__rcu' of expression
>> lib/maple_tree.c:528:46: sparse: sparse: cast removes address space '__rcu' of expression
>> lib/maple_tree.c:528:46: sparse: sparse: cast removes address space '__rcu' of expression
>> lib/maple_tree.c:528:46: sparse: sparse: cast removes address space '__rcu' of expression
vim +/__rcu +528 lib/maple_tree.c
498
499 /*
500 * mas_set_parent_slots() - Bulk operation to set many slot parent pointers
501 * @mas: The maple state
502 * @parent: The encoded maple node that is the parent of @enode.
503 * @slot: The slot that of the @enode.
504 * @start_slot: The offset into @slot
505 * @count: The number of slots to set (eg: exclusive)
506 */
507 static inline
508 void mas_set_parent_slots(struct ma_state *mas, struct maple_enode *parent,
509 void __rcu **slots, unsigned char start_slot, unsigned char count)
510 {
511 unsigned long val;
512 unsigned long shift;
513 unsigned long type;
514 enum maple_type p_type = mte_node_type(parent);
515 unsigned char i;
516
517 MAS_BUG_ON(mas, p_type != maple_range_64 &&
518 p_type != maple_arange_64);
519
520 shift = MAPLE_PARENT_SLOT_SHIFT;
521 type = MAPLE_PARENT_RANGE64;
522
523 val = (unsigned long)parent;
524 val &= ~MAPLE_NODE_MASK;
525
526 for (i = 0; i < count; i++) {
527 unsigned long pval = val | ((start_slot + i) << shift) | type;
> 528 struct maple_enode *child = (struct maple_enode *)slots[i];
529
530 mte_to_node(child)->parent = ma_parent_ptr(pval);
531 }
532 }
533
--
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-06-27 1:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-27 1:04 [liam:maple_marks_v7.2 11/31] lib/maple_tree.c:528:46: sparse: sparse: cast removes address space '__rcu' of expression 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.