From patchwork Thu Feb 18 14:01:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102745 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp605341lbl; Thu, 18 Feb 2016 06:04:48 -0800 (PST) X-Received: by 10.66.242.17 with SMTP id wm17mr10184258pac.155.1455804287922; Thu, 18 Feb 2016 06:04:47 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ez9si9693181pab.20.2016.02.18.06.04.47; Thu, 18 Feb 2016 06:04:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1946353AbcBROEp (ORCPT + 30 others); Thu, 18 Feb 2016 09:04:45 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:55602 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1425501AbcBROEk (ORCPT ); Thu, 18 Feb 2016 09:04:40 -0500 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue101) with ESMTPA (Nemesis) id 0M3C4d-1ZeZPp3TMN-00sx0C; Thu, 18 Feb 2016 15:04:10 +0100 From: Arnd Bergmann To: Russell King Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Ard Biesheuvel , Nicolas Pitre , Jon Medhurst , Marc Zyngier , linux-kernel@vger.kernel.org Subject: [PATCH 5/9] ARM: atags_to_fdt: don't warn about stack size Date: Thu, 18 Feb 2016 15:01:57 +0100 Message-Id: <1455804123-2526139-6-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1455804123-2526139-1-git-send-email-arnd@arndb.de> References: <1455804123-2526139-1-git-send-email-arnd@arndb.de> X-Provags-ID: V03:K0:MrDLxKt0Oq18rZkIZ+i4+xnDQcy07/xSGnft/Fje2Bu7OxrMkI+ /ZcZPQTqJhsecEM2VWHsf8TJQjnycQQE0Sk05UZAQ9ZDNhJCnVpEXLbn9OIcwhnUFwgLmQj g7exzWdi2YYQpZDrxNp5iQuHbzRoJTW2yTT2b1vFFa6EbGFxg97scwFBDCcgY4sRmo9yb+R CtcTl5dVVb915yy7xdCYg== X-UI-Out-Filterresults: notjunk:1; V01:K0:xDLlub+n3tI=:0zTcNiMuw3Yen6E6pKJmCY 7xXjPGIHNTpteVJcTutLdNB9ozFHoGXu05wdYNtrhhSkuG0u3lglk5+38u5nRcECh62wS8yPC LzVuxxMwHMsEKiGGuOYqvgw2P4rYc5TEoxlgqYEhE/qDlwPg3cSNSZBbgyrbF/8yUTbeCR1z/ KuQAD+nJb/DsKx8ei6u1pwj05JZtx4wbWJsKx5PWdljdlqeIn21GRl2EpgrvQZJqPyooWUFih oBZTl84A5I6mL91ouRZgGfV0GXdCBTn0UsRrekQBGod5gwxMLdB7d+jQAR7Pa/30/hMIxSBbX 5vkeY9wf9S1bfXUK0Hy5I4MvpZNQVwAAHHmO72DSzhdh5LH9H5luzG9kTjB2leIFVM7Nj5fzs Nq/BcJ3M6lGPfPkrE9MBSXxr+oOgh02Ap2OtL+yhUsNQ/xnYD9KEv7RBF0qIAyF5YGh2ZVdEa folAw3uqD6+JpXWZBZBNMt71E95UjGeMa0/m81Wnd8MsVhxFbhnqBZJZyvESpQ0XW4qv2eWyf Ur+VM9qRS7B2k1iF7SFf+25gjlOfuBsWNyxiQkmkhii1P+zdng1sEAe8dhN3LctreR+J90IJ6 h4ochpA7BsSgo7HYP3sRTaK4fwYIvS2Ytn2KElQS037mGCe4Vif/ie5b4UwfUYBTWDn9Mwu9A 1oDlkPdInM+bLVbuy1XIte7f4m6RxW3Aat3plUr++f5KUSCz4kiqiu+19rvWPetvJl/U= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Signed-off-by: Arnd Bergmann --- arch/arm/boot/compressed/Makefile | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.0 diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile index 7a6a58ef8aaf..b5db4c868640 100644 --- a/arch/arm/boot/compressed/Makefile +++ b/arch/arm/boot/compressed/Makefile @@ -85,6 +85,8 @@ $(addprefix $(obj)/,$(libfdt) $(libfdt_hdrs)): $(obj)/%: $(srctree)/scripts/dtc/ $(addprefix $(obj)/,$(libfdt_objs) atags_to_fdt.o): \ $(addprefix $(obj)/,$(libfdt_hdrs)) +CFLAGS_REMOVE_atags_to_fdt.o += -Wframe-larger-than=${CONFIG_FRAME_WARN} + ifeq ($(CONFIG_ARM_ATAG_DTB_COMPAT),y) OBJS += $(libfdt_objs) atags_to_fdt.o endif