lib/maple_tree.c:4327:20: warning: stack frame size (1112) exceeds limit (1024) in 'mas_wr_modify'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Liam,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   21e80f3841c01aeaf32d7aee7bbc87b3db1aa0c6
commit: 54a611b605901c7d5d05b6b8f5d04a6ceb0962aa Maple Tree: add new data structure
date:   1 year, 1 month ago
config: um-allnoconfig (https://download.01.org/0day-ci/archive/20231102/202311022317.B3t8ONbL-lkp@xxxxxxxxx/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231102/202311022317.B3t8ONbL-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311022317.B3t8ONbL-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

   lib/maple_tree.c:330:20: warning: unused function 'mte_set_full' [-Wunused-function]
     330 | static inline void mte_set_full(const struct maple_enode *node)
         |                    ^
   lib/maple_tree.c:335:20: warning: unused function 'mte_clear_full' [-Wunused-function]
     335 | static inline void mte_clear_full(const struct maple_enode *node)
         |                    ^
   lib/maple_tree.c:3958:19: warning: stack frame size (1032) exceeds limit (1024) in 'mas_wr_spanning_store' [-Wframe-larger-than]
    3958 | static inline int mas_wr_spanning_store(struct ma_wr_state *wr_mas)
         |                   ^
>> lib/maple_tree.c:4327:20: warning: stack frame size (1112) exceeds limit (1024) in 'mas_wr_modify' [-Wframe-larger-than]
    4327 | static inline void mas_wr_modify(struct ma_wr_state *wr_mas)
         |                    ^
   4 warnings generated.


vim +/mas_wr_modify +4327 lib/maple_tree.c

  4326	
> 4327	static inline void mas_wr_modify(struct ma_wr_state *wr_mas)
  4328	{
  4329		unsigned char node_slots;
  4330		unsigned char node_size;
  4331		struct ma_state *mas = wr_mas->mas;
  4332	
  4333		/* Direct replacement */
  4334		if (wr_mas->r_min == mas->index && wr_mas->r_max == mas->last) {
  4335			rcu_assign_pointer(wr_mas->slots[mas->offset], wr_mas->entry);
  4336			if (!!wr_mas->entry ^ !!wr_mas->content)
  4337				mas_update_gap(mas);
  4338			return;
  4339		}
  4340	
  4341		/* Attempt to append */
  4342		node_slots = mt_slots[wr_mas->type];
  4343		node_size = wr_mas->node_end - wr_mas->offset_end + mas->offset + 2;
  4344		if (mas->max == ULONG_MAX)
  4345			node_size++;
  4346	
  4347		/* slot and node store will not fit, go to the slow path */
  4348		if (unlikely(node_size >= node_slots))
  4349			goto slow_path;
  4350	
  4351		if (wr_mas->entry && (wr_mas->node_end < node_slots - 1) &&
  4352		    (mas->offset == wr_mas->node_end) && mas_wr_append(wr_mas)) {
  4353			if (!wr_mas->content || !wr_mas->entry)
  4354				mas_update_gap(mas);
  4355			return;
  4356		}
  4357	
  4358		if ((wr_mas->offset_end - mas->offset <= 1) && mas_wr_slot_store(wr_mas))
  4359			return;
  4360		else if (mas_wr_node_store(wr_mas))
  4361			return;
  4362	
  4363		if (mas_is_err(mas))
  4364			return;
  4365	
  4366	slow_path:
  4367		mas_wr_bnode(wr_mas);
  4368	}
  4369	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux