linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] xtensa: Increase size of gcc stack frame check
@ 2021-09-12  2:52 Guenter Roeck
  2021-09-12  3:05 ` Max Filippov
  2021-09-13 15:57 ` David Laight
  0 siblings, 2 replies; 9+ messages in thread
From: Guenter Roeck @ 2021-09-12  2:52 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Masahiro Yamada, linux-xtensa, linux-kernel, Guenter Roeck,
	Chris Zankel, Max Filippov

xtensa frame size is larger than the frame size for almost all other
architectures. This results in more than 50 "the frame size of <n> is
larger than 1024 bytes" errors when trying to build xtensa:allmodconfig.

Increase frame size for xtensa to 1536 bytes to avoid compile errors
due to frame size limits.

Cc: Chris Zankel <chris@zankel.net>
Cc: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
 lib/Kconfig.debug | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index ed4a31e34098..afad11e57d6b 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -346,7 +346,7 @@ config FRAME_WARN
 	int "Warn for stack frames larger than"
 	range 0 8192
 	default 2048 if GCC_PLUGIN_LATENT_ENTROPY
-	default 1536 if (!64BIT && PARISC)
+	default 1536 if (!64BIT && (PARISC || XTENSA))
 	default 1024 if (!64BIT && !PARISC)
 	default 2048 if 64BIT
 	help
-- 
2.33.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-09-14 17:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-12  2:52 [PATCH] xtensa: Increase size of gcc stack frame check Guenter Roeck
2021-09-12  3:05 ` Max Filippov
2021-09-12  4:02   ` Guenter Roeck
2021-09-12  5:16     ` Max Filippov
2021-09-13 15:57 ` David Laight
2021-09-13 16:11   ` Guenter Roeck
2021-09-14  7:04     ` Max Filippov
2021-09-14 14:02       ` Guenter Roeck
2021-09-14 17:24         ` Max Filippov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).