Thread (5 messages) flat view 5 messages, 4 authors, 2021-08-09

Re: [PATCH] ARM: atags_to_fdt: don't warn about stack size

From: "Russell King (Oracle)" <linux@armlinux.org.uk>
Date: 2021-08-09 15:24:34
Also in: lkml

On Mon, Aug 09, 2021 at 05:10:21PM +0200, David Heidelberg wrote:
The merge_fdt_bootargs() function by definition consumes more than 1024
bytes of stack because it has a 1024 byte command line on the stack,
meaning that we always get a warning when building this file:

arch/arm/boot/compressed/atags_to_fdt.c: In function 'merge_fdt_bootargs':
arch/arm/boot/compressed/atags_to_fdt.c:98:1: warning: the frame size of 1032 bytes is larger than 1024 bytes [-Wframe-larger-than=]

However, as this is the decompressor and we know that it has a very shallow
call chain, and we do not actually risk overflowing the kernel stack
at runtime here.

This just shuts up the warning by disabling the warning flag for this
file.

Tested on Nexus 7 2012 builds.

Original Author: Arnd Bergmann [off-list ref]
Reference: https://lore.kernel.org/lkml/8232115.18ykgQ6J5T@wuerfel/ (local)

Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Nicolas Pitre <redacted>
Cc: Russell King <redacted>
Cc: Ard Biesheuvel <redacted>
Cc: Marc Zyngier <redacted>
Cc: linux-kernel@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org

Signed-off-by: David Heidelberg <david@ixit.cz>
I assume Arnd never sent his v3 from what I see in the thread you link
to above.

This needs to go to the patch system to be applied. Details in my
signature below. Thanks.

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help