[issue report] ARM: compile error of frame size

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Thu Jul 17 19:09:33 PDT 2025


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



More information about the linux-arm-kernel mailing list