* [android-common:android14-kiwi-6.1 374/374] lib/maple_tree.c:4736:7: warning: no previous prototype for 'mas_next_slot'
@ 2026-10-29 1:05 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-29 1:05 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
Hi Liam,
FYI, the error/warning still remains.
tree: https://android.googlesource.com/kernel/common android14-kiwi-6.1
head: 0951885c34a0e48adda08777b026c61fed9613ea
commit: 84719794e06c13fd9a3fd0c547af5bf9d76f7c3b [374/374] FROMGIT: maple_tree: introduce mas_next_slot() interface
config: i386-allnoconfig (https://download.01.org/0day-ci/archive/20261029/202610290855.wUnSBLgb-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261029/202610290855.wUnSBLgb-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/202610290855.wUnSBLgb-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> lib/maple_tree.c:4736:7: warning: no previous prototype for 'mas_next_slot' [-Wmissing-prototypes]
4736 | void *mas_next_slot(struct ma_state *mas, unsigned long max, bool empty)
| ^~~~~~~~~~~~~
vim +/mas_next_slot +4736 lib/maple_tree.c
4726
4727 /*
4728 * mas_next_slot() - Get the entry in the next slot
4729 *
4730 * @mas: The maple state
4731 * @max: The maximum starting range
4732 * @empty: Can be empty
4733 *
4734 * Return: The entry in the next slot which is possibly NULL
4735 */
> 4736 void *mas_next_slot(struct ma_state *mas, unsigned long max, bool empty)
4737 {
4738 void __rcu **slots;
4739 unsigned long *pivots;
4740 unsigned long pivot;
4741 enum maple_type type;
4742 struct maple_node *node;
4743 unsigned char data_end;
4744 unsigned long save_point = mas->last;
4745 void *entry;
4746
4747 retry:
4748 node = mas_mn(mas);
4749 type = mte_node_type(mas->node);
4750 pivots = ma_pivots(node, type);
4751 data_end = ma_data_end(node, type, pivots, mas->max);
4752 if (unlikely(mas_rewalk_if_dead(mas, node, save_point)))
4753 goto retry;
4754
4755 again:
4756 if (mas->max >= max) {
4757 if (likely(mas->offset < data_end))
4758 pivot = pivots[mas->offset];
4759 else
4760 return NULL; /* must be mas->max */
4761
4762 if (unlikely(mas_rewalk_if_dead(mas, node, save_point)))
4763 goto retry;
4764
4765 if (pivot >= max)
4766 return NULL;
4767 }
4768
4769 if (likely(mas->offset < data_end)) {
4770 mas->index = pivots[mas->offset] + 1;
4771 mas->offset++;
4772 if (likely(mas->offset < data_end))
4773 mas->last = pivots[mas->offset];
4774 else
4775 mas->last = mas->max;
4776 } else {
4777 if (mas_next_node(mas, node, max)) {
4778 mas_rewalk(mas, save_point);
4779 goto retry;
4780 }
4781
4782 if (mas_is_none(mas))
4783 return NULL;
4784
4785 mas->offset = 0;
4786 mas->index = mas->min;
4787 node = mas_mn(mas);
4788 type = mte_node_type(mas->node);
4789 pivots = ma_pivots(node, type);
4790 mas->last = pivots[0];
4791 }
4792
4793 slots = ma_slots(node, type);
4794 entry = mt_slot(mas->tree, slots, mas->offset);
4795 if (unlikely(mas_rewalk_if_dead(mas, node, save_point)))
4796 goto retry;
4797
4798 if (entry)
4799 return entry;
4800
4801 if (!empty) {
4802 if (!mas->offset)
4803 data_end = 2;
4804 goto again;
4805 }
4806
4807 return entry;
4808 }
4809
--
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-10-29 1:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-29 1:05 [android-common:android14-kiwi-6.1 374/374] lib/maple_tree.c:4736:7: warning: no previous prototype for 'mas_next_slot' 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.