linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [issue report] ARM: compile error of frame size
@ 2025-07-18  2:09 Kuninori Morimoto
  2025-07-28 14:56 ` Geert Uytterhoeven
  0 siblings, 1 reply; 13+ messages in thread
From: Kuninori Morimoto @ 2025-07-18  2:09 UTC (permalink / raw)
  To: rmk+kernel, Russell King, linux-arm-kernel
  Cc: Marek Vasut, Geert Uytterhoeven


Hi ARM ML

In these days, I got a lot of compile error about frame size on ARM.
like below.

    ${linux}/lib/maple_tree.c:3818:1: error: the frame size of 1304 bytes is\
     larger than 1280 bytes [-Werror=frame-larger-than=]

I can avoid these errors by modifing like below
(The new size is unreliable)

	> grep CONFIG_FRAME_WARN .config
	CONFIG_FRAME_WARN=2040

	> git diff
	diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile
	index d61369b1eabe..c5173bd82380 100644
	--- a/arch/arm/boot/compressed/Makefile
	+++ b/arch/arm/boot/compressed/Makefile
	@@ -80,7 +80,7 @@ libfdt_objs := fdt_rw.o fdt_ro.o fdt_wip.o fdt.o
 
	 ifeq ($(CONFIG_ARM_ATAG_DTB_COMPAT),y)
	 CFLAGS_REMOVE_atags_to_fdt.o += -Wframe-larger-than=${CONFIG_FRAME_WARN}
-	 CFLAGS_atags_to_fdt.o += -Wframe-larger-than=1280
+	 CFLAGS_atags_to_fdt.o += -Wframe-larger-than=2040
	 OBJS	+= $(libfdt_objs) atags_to_fdt.o
	 endif
	 ifeq ($(CONFIG_USE_OF),y)


Is it known issue ?


Thank you for your help !!

Best regards
---
Kuninori Morimoto


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

end of thread, other threads:[~2025-10-15 15:18 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-18  2:09 [issue report] ARM: compile error of frame size Kuninori Morimoto
2025-07-28 14:56 ` Geert Uytterhoeven
2025-07-29  0:12   ` Kuninori Morimoto
2025-07-29  7:15     ` Geert Uytterhoeven
2025-07-29  7:27       ` Arnd Bergmann
2025-07-29  7:49         ` Geert Uytterhoeven
2025-10-14 14:47           ` Geert Uytterhoeven
2025-10-14 16:53             ` Liam R. Howlett
2025-10-15  9:26               ` Geert Uytterhoeven
2025-10-15 10:07               ` Geert Uytterhoeven
2025-10-15 11:02                 ` Arnd Bergmann
2025-10-15 14:58                   ` Geert Uytterhoeven
2025-10-15 15:17                     ` Arnd Bergmann

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).