From: kernel test robot <lkp@intel.com>
To: "Liam R. Howlett (Oracle)" <liam@infradead.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [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
Date: Tue, 30 Jun 2026 10:28:14 +0800 [thread overview]
Message-ID: <202606301010.g1T3FOX8-lkp@intel.com> (raw)
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
reply other threads:[~2026-06-30 2:28 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=202606301010.g1T3FOX8-lkp@intel.com \
--to=lkp@intel.com \
--cc=liam@infradead.org \
--cc=llvm@lists.linux.dev \
--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