Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1522222pxb; Thu, 16 Sep 2021 09:10:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJza2FBRuftx8gQw1vn4skHqWVmsOLiIslNch1toO399xYdbF355GcN2vUtXb+sDsajYoT8K X-Received: by 2002:a05:6402:3514:: with SMTP id b20mr7356325edd.152.1631808626168; Thu, 16 Sep 2021 09:10:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631808626; cv=none; d=google.com; s=arc-20160816; b=oULqbclpRO1/N3IyKmsBMITyQRFW1qnc04vlegKa69Uv8/mqn5ehHpVmz6LwvRn70L 4lWr6DpMBNnrho1vOPUbvcbkSDGVyHnd9elXHPjl73deZlH+pXK72RQt7ZXuGuVeClCN kCZfarrh679Zta5/e7bhc4T815mbzEzSkoGn5NK7HfPKVb4gXbL1RfazYu/oLJTWSi58 WEdI1QS1bfaNSPo4LGZcQ3P397qGzozEVbhmNjJ/gxoxzBf4YZAtvKijwGH/SobV3rJa Ip5JoMssnEem7InEiZ4DlvaLDe1Ahp2GMXAvejaOUk/5JKchWT4zgE2hidqRTzHYsepp IkWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=gglsma64zdHvYovxOeAr7/JBJYMOtMb2VbAOgZwU0rQ=; b=XzAXoDq2C/5DJ6S/h9U0GF1aCEmYKTsZdnaiwVmnnB0VNyEB8DS1arawRP/cBwqxV9 +t3oc7+k92v9H023PHW9bZsyDwZTKFASh9z1xcSizuVH5D98H05DGToDxf+UIFqwGqBY SInRsluTsUvM+kp1xzPCxEToAQG8g6SXT1M+ewn17La4YcWh/BuKIdH3wCQj6PknjOnX 2F/975+N/ggYJcbscRAcRyEj3x+4Rkw28OFrh3gOLBhRJvRiuNNFLGq2C5+s1EUNRZuE X8GK1/uS+y77gwqAtKp16lK/2Y/SDfHawSTCL0u+KEq+GvXNwrXnoizH+MgTbYv6/Guf FKjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DeStoLhl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l24si3856757edw.288.2021.09.16.09.09.58; Thu, 16 Sep 2021 09:10:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DeStoLhl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235649AbhIPQJL (ORCPT + 99 others); Thu, 16 Sep 2021 12:09:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:45998 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232965AbhIPQGh (ORCPT ); Thu, 16 Sep 2021 12:06:37 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 147DE6124E; Thu, 16 Sep 2021 16:05:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631808316; bh=D2yAOnb3dNE7R+m7rjpWtI09bYQo67r8tmDlgBFgO9Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DeStoLhlAQsMEmBYH4CSettKUpa/ngqzFPqo4wyJr7zaqiPEPchzyvtRpWM5FQFU0 7qsNLKn0YGipmQQmT4guPiRgRvYcR/O5KjzrwVCZb1DewJAhueEaKwEQpiO70DH5uW 7M7++LRYvG90oJPqNtBABaNYJbp6fWNXtjyWVyCA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nicolas Pitre , David Heidelberg , Arnd Bergmann , "Russell King (Oracle)" Subject: [PATCH 5.10 044/306] ARM: 9105/1: atags_to_fdt: dont warn about stack size Date: Thu, 16 Sep 2021 17:56:29 +0200 Message-Id: <20210916155755.447084403@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155753.903069397@linuxfoundation.org> References: <20210916155753.903069397@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: David Heidelberg commit b30d0289de72c62516df03fdad8d53f552c69839 upstream. 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 Signed-off-by: David Heidelberg Signed-off-by: Arnd Bergmann Cc: Signed-off-by: Russell King (Oracle) Signed-off-by: Greg Kroah-Hartman --- arch/arm/boot/compressed/Makefile | 2 ++ 1 file changed, 2 insertions(+) --- a/arch/arm/boot/compressed/Makefile +++ b/arch/arm/boot/compressed/Makefile @@ -84,6 +84,8 @@ compress-$(CONFIG_KERNEL_LZ4) = lz4 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 OBJS += $(libfdt_objs) atags_to_fdt.o endif