Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [liam:maple_marks_v7.2_fixes 13/33] lib/maple_tree.c:531:14: error: call to undeclared function 'mt_locked'; ISO C99 and later do not support implicit function declarations
@ 2026-06-30  2:28 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-06-30  2:28 UTC (permalink / raw)
  To: Liam R. Howlett (Oracle); +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/liam/linux.git maple_marks_v7.2_fixes
head:   1536d2bf9195cbde5a1dd7fa78fd6995a29b004f
commit: 6f34957a13773332ff09b7cd43aa9486f0adb285 [13/33] maple_tree: Fix dereference of rcu type
config: hexagon-allnoconfig (https://download.01.org/0day-ci/archive/20260630/202606301010.g1T3FOX8-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 6cc609bb250b21b47fc7d394b4019101e9983597)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260630/202606301010.g1T3FOX8-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/202606301010.g1T3FOX8-lkp@intel.com/

All errors (new ones prefixed by >>):

>> lib/maple_tree.c:531:14: error: call to undeclared function 'mt_locked'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     531 |                                                        mt_locked(mas->tree)));
         |                                                        ^
>> lib/maple_tree.c:744:29: error: static declaration of 'mt_locked' follows non-static declaration
     744 | static __always_inline bool mt_locked(const struct maple_tree *mt)
         |                             ^
   lib/maple_tree.c:531:14: note: previous implicit declaration is here
     531 |                                                        mt_locked(mas->tree)));
         |                                                        ^
   2 errors generated.


vim +/mt_locked +531 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;
   529	
   530			child = ma_enode_ptr(rcu_dereference_protected(slots[i],
 > 531							       mt_locked(mas->tree)));
   532			mte_to_node(child)->parent = ma_parent_ptr(pval);
   533		}
   534	}
   535	

--
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-30  2:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-30  2:28 [liam:maple_marks_v7.2_fixes 13/33] lib/maple_tree.c:531:14: error: call to undeclared function 'mt_locked'; ISO C99 and later do not support implicit function declarations 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