tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: e922ba281a8d84f640d8c8e18a385d032c19e185 commit: 0d785405fe36734d6861274187bf504db4229719 [1003/2056] maple_tree: introduce mas_prev_slot() interface config: m68k-defconfig (https://download.01.org/0day-ci/archive/20230513/202305131049.J7dKieVZ-lkp@xxxxxxxxx/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=0d785405fe36734d6861274187bf504db4229719 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 0d785405fe36734d6861274187bf504db4229719 # 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@xxxxxxxxx> | Link: https://lore.kernel.org/oe-kbuild-all/202305131049.J7dKieVZ-lkp@xxxxxxxxx/ All warnings (new ones prefixed by >>): >> lib/maple_tree.c:4606:7: warning: no previous prototype for 'mas_prev_slot' [-Wmissing-prototypes] 4606 | void *mas_prev_slot(struct ma_state *mas, unsigned long min, bool empty) | ^~~~~~~~~~~~~ lib/maple_tree.c:4758:7: warning: no previous prototype for 'mas_next_slot' [-Wmissing-prototypes] 4758 | void *mas_next_slot(struct ma_state *mas, unsigned long max, bool empty) | ^~~~~~~~~~~~~ vim +/mas_prev_slot +4606 lib/maple_tree.c 4597 4598 /* 4599 * mas_prev_slot() - Get the entry in the previous slot 4600 * 4601 * @mas: The maple state 4602 * @max: The minimum starting range 4603 * 4604 * Return: The entry in the previous slot which is possibly NULL 4605 */ > 4606 void *mas_prev_slot(struct ma_state *mas, unsigned long min, bool empty) 4607 { 4608 void *entry; 4609 void __rcu **slots; 4610 unsigned long pivot; 4611 enum maple_type type; 4612 unsigned long *pivots; 4613 struct maple_node *node; 4614 unsigned long save_point = mas->index; 4615 4616 retry: 4617 node = mas_mn(mas); 4618 type = mte_node_type(mas->node); 4619 pivots = ma_pivots(node, type); 4620 if (unlikely(mas_rewalk_if_dead(mas, node, save_point))) 4621 goto retry; 4622 4623 again: 4624 if (mas->min <= min) { 4625 pivot = mas_safe_min(mas, pivots, mas->offset); 4626 4627 if (unlikely(mas_rewalk_if_dead(mas, node, save_point))) 4628 goto retry; 4629 4630 if (pivot <= min) 4631 return NULL; 4632 } 4633 4634 if (likely(mas->offset)) { 4635 mas->offset--; 4636 mas->last = mas->index - 1; 4637 mas->index = mas_safe_min(mas, pivots, mas->offset); 4638 } else { 4639 if (mas_prev_node(mas, min)) { 4640 mas_rewalk(mas, save_point); 4641 goto retry; 4642 } 4643 4644 if (mas_is_none(mas)) 4645 return NULL; 4646 4647 mas->last = mas->max; 4648 node = mas_mn(mas); 4649 type = mte_node_type(mas->node); 4650 pivots = ma_pivots(node, type); 4651 mas->index = pivots[mas->offset - 1] + 1; 4652 } 4653 4654 slots = ma_slots(node, type); 4655 entry = mas_slot(mas, slots, mas->offset); 4656 if (unlikely(mas_rewalk_if_dead(mas, node, save_point))) 4657 goto retry; 4658 4659 if (likely(entry)) 4660 return entry; 4661 4662 if (!empty) 4663 goto again; 4664 4665 return entry; 4666 } 4667 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests