diff options
author | David Heidelberg <david@ixit.cz> | 2021-08-09 20:07:30 +0200 |
---|---|---|
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2021-08-10 13:17:42 +0200 |
commit | b30d0289de72c62516df03fdad8d53f552c69839 (patch) | |
tree | deecc28871f6a1bfa666993a59ddcbba04dd6a55 /mm/maccess.c | |
parent | ARM: 9103/1: Drop ARCH_NR_GPIOS definition (diff) | |
download | linux-b30d0289de72c62516df03fdad8d53f552c69839.tar.xz linux-b30d0289de72c62516df03fdad8d53f552c69839.zip |
ARM: 9105/1: atags_to_fdt: don't warn about stack size
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.
Acked-by: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: David Heidelberg <david@ixit.cz>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'mm/maccess.c')
0 files changed, 0 insertions, 0 deletions