Re: maple_tree.c:3738:1: error: the frame size of 1040 bytes is larger than 1024 bytes

From: Christian Kujau

Date: Thu Oct 30 2025 - 10:48:33 EST


On Thu, 30 Oct 2025, David Laight wrote:
> Does marking mas_wr_bnode() 'noinline' help?
> Some functions are marked noinline for KASAN builds, the comment suggests
> mas_wr_bnode() is one of them - but it isn't marked at all.

Yes, I've seen that too. But adding noinline or noinline_for_kasan did not
help, compilation stopped with the same erro^W warning.

diff --git a/lib/maple_tree.c b/lib/maple_tree.c
index 39bb779cb311..90ec87d4d49d 100644
--- a/lib/maple_tree.c
+++ b/lib/maple_tree.c
@@ -3727,7 +3727,7 @@ static inline void mas_wr_append(struct ma_wr_state
*wr_mas,
*
* This is where split, rebalance end up.
*/
-static void mas_wr_bnode(struct ma_wr_state *wr_mas)
+static noinline_for_kasan void mas_wr_bnode(struct ma_wr_state *wr_mas)
{
struct maple_big_node b_node;


Thanks,
Christian.
--
BOFH excuse #294:

PCMCIA slave driver