[issue report] ARM: compile error of frame size
Geert Uytterhoeven
geert at linux-m68k.org
Mon Jul 28 07:56:50 PDT 2025
Hi Morimoto-san,
On Fri, 18 Jul 2025 at 04:09, Kuninori Morimoto
<kuninori.morimoto.gx at renesas.com> wrote:
> 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 ?
Yes it is. And it is hard to fix, according to the maple_tree maintainer:
https://lore.kernel.org/all/troejyyno7oiokx4njv7cbahwhkvkovlopj2igwlsexxqmrmaj@f3cjalwkpvf6
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
More information about the linux-arm-kernel
mailing list