All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Liam R. Howlett" <Liam.Howlett@oracle.com>
Cc: oe-kbuild-all@lists.linux.dev,
	"Liam R. Howlett (Oracle)" <liam@infradead.org>
Subject: [liam:maple_marks_v7.2 11/31] lib/maple_tree.c:528:46: sparse: sparse: cast removes address space '__rcu' of expression
Date: Sat, 27 Jun 2026 09:04:14 +0800	[thread overview]
Message-ID: <202606270937.VMOBGtwx-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-06-27  1:05 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=202606270937.VMOBGtwx-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Liam.Howlett@oracle.com \
    --cc=liam@infradead.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 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.