[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <bb105b91-1f11-0a2b-a666-6ee72f86d989@nerdbynature.de>
Date: Thu, 30 Oct 2025 15:48:30 +0100 (CET)
From: Christian Kujau <lists@...dbynature.de>
To: David Laight <david.laight.linux@...il.com>
cc: linux-kernel@...r.kernel.org, "Liam R. Howlett" <Liam.Howlett@...cle.com>, 
    Arnd Bergmann <arnd@...db.de>
Subject: Re: maple_tree.c:3738:1: error: the frame size of 1040 bytes is
 larger than 1024 bytes
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
Powered by blists - more mailing lists
 
