Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2319098pxb; Mon, 20 Sep 2021 18:41:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYT5bH3mRY3a5a6MF1ZCLjpLJmv11a5whEhAeJkrj4pbXQ9ssGVHzvQceGmE9fPE0qlNnO X-Received: by 2002:a6b:8e50:: with SMTP id q77mr20796099iod.96.1632188516157; Mon, 20 Sep 2021 18:41:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632188516; cv=none; d=google.com; s=arc-20160816; b=RrSDUWlvvZ0NZ6RpMjC21eRCrX349ZPx72SwfqubGoSDGDE3BXhltktcc04I0S19FP UvFnPY3svq5Klynvqgb/daugFVlT1sDtuXLDpj8HcBjhT3F7SXbLl35Lfo1vQWJmu0tM qshOja52Yu1B6FX9C/YAGmi1WBcL2l95ShsqtMm+D5jfpGTZfaMkhnKN2uZIwbqMp/D7 k699yXjwOa/fQrIHdtiMnpNOV9lvRuuHOublTMb0YP3UOnRmPJ5h2NUvN5dJ+6stQcx9 pHmoT/C7hWV/NwBNmZHO9xw+ijhACKDgpZkdI296zOJ3VWgEBR3zWrSovhox17wZgkFv lj8w== 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=ywqU2cxtxkq2d9oTp0llFU8RBA+dlSMu17pD9LY28SE=; b=Nae1aHb8sA8WHC9OlrbqrIqbcR7ybRWKIPt9QUEXH1prSOVIg2oMkm4VS1MCZhFAng P72c7zJ5M/ICWo410PRmEp+9LRTl7mAX9/AE7wATBwCI3kuUOHxJnM+9uhipUhqbEv8m ojzIRaEpchCZDD1T3wMgtiCz6OLReQb+ozbwA/wGJlCOzlx54ilDoctNCC4XGOpJ3ty3 zn7dllGmsG07OdZAC+D2uJxo5MdGtZjkdAix36CugFdhIrywfkrN/r+Z+Fp5ZvBQ3SIg RnjdlBDoGJ5EeT9buqKhnXaULnNCe6jrziWxeiSgyfWHjDmGlHFidCIda8l8QTGzIhqx +6bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yt+W5P9v; 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 s26si15522836iov.21.2021.09.20.18.41.45; Mon, 20 Sep 2021 18:41:56 -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=yt+W5P9v; 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 S244697AbhITQvI (ORCPT + 99 others); Mon, 20 Sep 2021 12:51:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:36602 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244246AbhITQtb (ORCPT ); Mon, 20 Sep 2021 12:49:31 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 595316128E; Mon, 20 Sep 2021 16:48:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632156484; bh=6422gvoGjZpiBQCCiC3od+yQYZXTTNtnzmysoQhm/HE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yt+W5P9v4EzKZkMB+YDAvyNNQa2G9z41aIAWe4uxWQ07O6fr1LBWCx1LbVr2MP8Tb cvqoPO+pvQqKl4ygi0Et8G6EH2k8SGK46tW+mE30FK4SwuOeCEdPsVZyu+ke+r6n7b NOr3JhXi4U7pmYgxUktw/o+lJih82pICOBS2XDxc= 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 4.4 080/133] ARM: 9105/1: atags_to_fdt: dont warn about stack size Date: Mon, 20 Sep 2021 18:42:38 +0200 Message-Id: <20210920163915.261884347@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163912.603434365@linuxfoundation.org> References: <20210920163912.603434365@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 @@ -86,6 +86,8 @@ $(addprefix $(obj)/,$(libfdt_objs) atags $(addprefix $(obj)/,$(libfdt_hdrs)) 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