* [linux-next:master 1000/2056] lib/maple_tree.c:4707:7: warning: no previous prototype for 'mas_next_slot'
@ 2023-05-13 0:26 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-05-13 0:26 UTC (permalink / raw)
To: Liam R. Howlett
Cc: oe-kbuild-all, Linux Memory Management List, Andrew Morton
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: e922ba281a8d84f640d8c8e18a385d032c19e185
commit: ad3a8f2de4cbf6063beaf3671ef25f268b325a88 [1000/2056] maple_tree: introduce mas_next_slot() interface
config: m68k-defconfig (https://download.01.org/0day-ci/archive/20230513/202305130809.SJnM01fL-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=ad3a8f2de4cbf6063beaf3671ef25f268b325a88
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout ad3a8f2de4cbf6063beaf3671ef25f268b325a88
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202305130809.SJnM01fL-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> lib/maple_tree.c:4707:7: warning: no previous prototype for 'mas_next_slot' [-Wmissing-prototypes]
4707 | void *mas_next_slot(struct ma_state *mas, unsigned long max, bool empty)
| ^~~~~~~~~~~~~
vim +/mas_next_slot +4707 lib/maple_tree.c
4697
4698 /*
4699 * mas_next_slot() - Get the entry in the next slot
4700 *
4701 * @mas: The maple state
4702 * @max: The maximum starting range
4703 * @empty: Can be empty
4704 *
4705 * Return: The entry in the next slot which is possibly NULL
4706 */
> 4707 void *mas_next_slot(struct ma_state *mas, unsigned long max, bool empty)
4708 {
4709 void __rcu **slots;
4710 unsigned long *pivots;
4711 unsigned long pivot;
4712 enum maple_type type;
4713 struct maple_node *node;
4714 unsigned char data_end;
4715 unsigned long save_point = mas->last;
4716 void *entry;
4717
4718 retry:
4719 node = mas_mn(mas);
4720 type = mte_node_type(mas->node);
4721 pivots = ma_pivots(node, type);
4722 data_end = ma_data_end(node, type, pivots, mas->max);
4723 if (unlikely(mas_rewalk_if_dead(mas, node, save_point)))
4724 goto retry;
4725
4726 again:
4727 if (mas->max >= max) {
4728 if (likely(mas->offset < data_end))
4729 pivot = pivots[mas->offset];
4730 else
4731 return NULL; /* must be mas->max */
4732
4733 if (unlikely(mas_rewalk_if_dead(mas, node, save_point)))
4734 goto retry;
4735
4736 if (pivot >= max)
4737 return NULL;
4738 }
4739
4740 if (likely(mas->offset < data_end)) {
4741 mas->index = pivots[mas->offset] + 1;
4742 mas->offset++;
4743 if (likely(mas->offset < data_end))
4744 mas->last = pivots[mas->offset];
4745 else
4746 mas->last = mas->max;
4747 } else {
4748 if (mas_next_node(mas, node, max)) {
4749 mas_rewalk(mas, save_point);
4750 goto retry;
4751 }
4752
4753 if (mas_is_none(mas))
4754 return NULL;
4755
4756 mas->offset = 0;
4757 mas->index = mas->min;
4758 node = mas_mn(mas);
4759 type = mte_node_type(mas->node);
4760 pivots = ma_pivots(node, type);
4761 mas->last = pivots[0];
4762 }
4763
4764 slots = ma_slots(node, type);
4765 entry = mt_slot(mas->tree, slots, mas->offset);
4766 if (unlikely(mas_rewalk_if_dead(mas, node, save_point)))
4767 goto retry;
4768
4769 if (entry)
4770 return entry;
4771
4772 if (!empty) {
4773 if (!mas->offset)
4774 data_end = 2;
4775 goto again;
4776 }
4777
4778 return entry;
4779 }
4780
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-05-13 0:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-13 0:26 [linux-next:master 1000/2056] lib/maple_tree.c:4707:7: warning: no previous prototype for 'mas_next_slot' 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