[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202508060948.H36grbYA-lkp@intel.com>
Date: Wed, 6 Aug 2025 09:18:07 +0200
From: kernel test robot <lkp@...el.com>
To: Sidhartha Kumar <sidhartha.kumar@...cle.com>
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
linux-kernel@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>,
Linux Memory Management List <linux-mm@...ck.org>,
"Liam R. Howlett" <Liam.Howlett@...cle.com>
Subject: lib/maple_tree.c:4206:20: warning: stack frame size (1064) exceeds
limit (1024) in 'mas_wr_store_entry'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 479058002c32b77acac43e883b92174e22c4be2d
commit: 1fd7c4f3228e9775c97b25a6e5e2420df8cf0e76 maple_tree: convert mas_insert() to preallocate nodes
date: 11 months ago
config: um-alldefconfig (https://download.01.org/0day-ci/archive/20250806/202508060948.H36grbYA-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project faa4c4c2dc804c31845d8f036345fac00e016f2d)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250806/202508060948.H36grbYA-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202508060948.H36grbYA-lkp@intel.com/
All warnings (new ones prefixed by >>):
lib/maple_tree.c:351:21: warning: unused function 'mte_set_full' [-Wunused-function]
351 | static inline void *mte_set_full(const struct maple_enode *node)
| ^~~~~~~~~~~~
lib/maple_tree.c:356:21: warning: unused function 'mte_clear_full' [-Wunused-function]
356 | static inline void *mte_clear_full(const struct maple_enode *node)
| ^~~~~~~~~~~~~~
lib/maple_tree.c:361:20: warning: unused function 'mte_has_null' [-Wunused-function]
361 | static inline bool mte_has_null(const struct maple_enode *node)
| ^~~~~~~~~~~~
lib/maple_tree.c:4161:20: warning: unused function 'mas_wr_modify' [-Wunused-function]
4161 | static inline void mas_wr_modify(struct ma_wr_state *wr_mas)
| ^~~~~~~~~~~~~
>> lib/maple_tree.c:4206:20: warning: stack frame size (1064) exceeds limit (1024) in 'mas_wr_store_entry' [-Wframe-larger-than]
4206 | static inline void mas_wr_store_entry(struct ma_wr_state *wr_mas)
| ^
lib/maple_tree.c:3783:21: warning: stack frame size (1032) exceeds limit (1024) in 'mas_wr_spanning_store' [-Wframe-larger-than]
3783 | static noinline int mas_wr_spanning_store(struct ma_wr_state *wr_mas)
| ^
6 warnings generated.
vim +/mas_wr_store_entry +4206 lib/maple_tree.c
54a611b605901c Liam R. Howlett 2022-09-06 4198
54a611b605901c Liam R. Howlett 2022-09-06 4199 /*
54a611b605901c Liam R. Howlett 2022-09-06 4200 * mas_wr_store_entry() - Internal call to store a value
54a611b605901c Liam R. Howlett 2022-09-06 4201 * @mas: The maple state
54a611b605901c Liam R. Howlett 2022-09-06 4202 * @entry: The entry to store.
54a611b605901c Liam R. Howlett 2022-09-06 4203 *
54a611b605901c Liam R. Howlett 2022-09-06 4204 * Return: The contents that was stored at the index.
54a611b605901c Liam R. Howlett 2022-09-06 4205 */
739820a6178b03 JaeJoon Jung 2024-06-14 @4206 static inline void mas_wr_store_entry(struct ma_wr_state *wr_mas)
54a611b605901c Liam R. Howlett 2022-09-06 4207 {
54a611b605901c Liam R. Howlett 2022-09-06 4208 struct ma_state *mas = wr_mas->mas;
580fcbd67ce2cd Sidhartha Kumar 2024-08-14 4209 unsigned char new_end = mas_wr_new_end(wr_mas);
54a611b605901c Liam R. Howlett 2022-09-06 4210
580fcbd67ce2cd Sidhartha Kumar 2024-08-14 4211 switch (mas->store_type) {
580fcbd67ce2cd Sidhartha Kumar 2024-08-14 4212 case wr_invalid:
580fcbd67ce2cd Sidhartha Kumar 2024-08-14 4213 MT_BUG_ON(mas->tree, 1);
739820a6178b03 JaeJoon Jung 2024-06-14 4214 return;
580fcbd67ce2cd Sidhartha Kumar 2024-08-14 4215 case wr_new_root:
580fcbd67ce2cd Sidhartha Kumar 2024-08-14 4216 mas_new_root(mas, wr_mas->entry);
580fcbd67ce2cd Sidhartha Kumar 2024-08-14 4217 break;
580fcbd67ce2cd Sidhartha Kumar 2024-08-14 4218 case wr_store_root:
580fcbd67ce2cd Sidhartha Kumar 2024-08-14 4219 mas_store_root(mas, wr_mas->entry);
580fcbd67ce2cd Sidhartha Kumar 2024-08-14 4220 break;
580fcbd67ce2cd Sidhartha Kumar 2024-08-14 4221 case wr_exact_fit:
580fcbd67ce2cd Sidhartha Kumar 2024-08-14 4222 rcu_assign_pointer(wr_mas->slots[mas->offset], wr_mas->entry);
580fcbd67ce2cd Sidhartha Kumar 2024-08-14 4223 if (!!wr_mas->entry ^ !!wr_mas->content)
580fcbd67ce2cd Sidhartha Kumar 2024-08-14 4224 mas_update_gap(mas);
580fcbd67ce2cd Sidhartha Kumar 2024-08-14 4225 break;
580fcbd67ce2cd Sidhartha Kumar 2024-08-14 4226 case wr_append:
580fcbd67ce2cd Sidhartha Kumar 2024-08-14 4227 mas_wr_append(wr_mas, new_end);
580fcbd67ce2cd Sidhartha Kumar 2024-08-14 4228 break;
580fcbd67ce2cd Sidhartha Kumar 2024-08-14 4229 case wr_slot_store:
580fcbd67ce2cd Sidhartha Kumar 2024-08-14 4230 mas_wr_slot_store(wr_mas);
580fcbd67ce2cd Sidhartha Kumar 2024-08-14 4231 break;
580fcbd67ce2cd Sidhartha Kumar 2024-08-14 4232 case wr_node_store:
580fcbd67ce2cd Sidhartha Kumar 2024-08-14 4233 mas_wr_node_store(wr_mas, new_end);
580fcbd67ce2cd Sidhartha Kumar 2024-08-14 4234 break;
580fcbd67ce2cd Sidhartha Kumar 2024-08-14 4235 case wr_spanning_store:
54a611b605901c Liam R. Howlett 2022-09-06 4236 mas_wr_spanning_store(wr_mas);
580fcbd67ce2cd Sidhartha Kumar 2024-08-14 4237 break;
580fcbd67ce2cd Sidhartha Kumar 2024-08-14 4238 case wr_split_store:
580fcbd67ce2cd Sidhartha Kumar 2024-08-14 4239 case wr_rebalance:
580fcbd67ce2cd Sidhartha Kumar 2024-08-14 4240 mas_wr_bnode(wr_mas);
580fcbd67ce2cd Sidhartha Kumar 2024-08-14 4241 break;
54a611b605901c Liam R. Howlett 2022-09-06 4242 }
54a611b605901c Liam R. Howlett 2022-09-06 4243
580fcbd67ce2cd Sidhartha Kumar 2024-08-14 4244 return;
54a611b605901c Liam R. Howlett 2022-09-06 4245 }
54a611b605901c Liam R. Howlett 2022-09-06 4246
:::::: The code at line 4206 was first introduced by commit
:::::: 739820a6178b03b1b6b99a467c85e9e7146d51c1 maple_tree: modified return type of mas_wr_store_entry()
:::::: TO: JaeJoon Jung <rgbi3307@...il.com>
:::::: CC: Andrew Morton <akpm@...ux-foundation.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists