Received: by 2002:a05:6520:4d:b0:139:a872:a4c9 with SMTP id i13csp2565986lkm; Mon, 20 Sep 2021 18:52:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjevPfwKhTsvrcKaeEKBGNxkasHD1yMz1pOVZOC5OKjl24+CCiURHjVsqLPneSR0MPH+l+ X-Received: by 2002:a05:6602:2243:: with SMTP id o3mr11578036ioo.10.1632189153547; Mon, 20 Sep 2021 18:52:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632189153; cv=none; d=google.com; s=arc-20160816; b=iFUuql7tQ+kVJIOytfntS87T/rDw75cd8ViYzICfRqoYe/egOvNpYsB6Z31a1m9uAJ APEE5T0/rwSemjiBVP9W6Vq8R6t6s9xDqrGFZfr+LdJ28h/V0lEKmwbwigKgSMS1vpg/ cE3/0RdYeA0dgfojePMtHIJSpbEy842sS4KrjoJ1Kx4O+YfSUW7yOnPmnHSATN9d652i XS420xkGvvBEH4wef0wjXU7MXsmyG7zMku6e+flzayMosiB/fxnE0/vj3440GvYhD49G ctpAUwvquRj1QN1yFsWWLry2QdJWbCo5F2dox9bCq1ikGfmpXV9s0f0mIpaPpfKLNWms ZOtg== 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=AApfYnNPmKO5tzGuoT5CvnbL6uH7nwk4t1nXdi09zco=; b=GdS9K9PTKh/wFCXRPsW2CQraahoy+X3FswyeWhZTZVc75pqwAby8pWssjKGG1sRadC yfu6LfkZQHoAkHoJbsOdLaIeYTTffNEjgqFHb4TDTkhybh/GU8Fo3EhA50LQPZcPVLNg Vv9cf28XtcUYVPbM9atSNPR3lhajIucafOLiEsJ5PRyJUEovMD710mo+2eKn2UI8vQNw Oa6O+5CNr8dxfCufU0obCcHQteM+lNKiaE+a6lJVhj46ffffJST2+F84ZrvL04lig94h KGfU+8Pa2XPyZ9CR/LhbObcVYKe+NZYBRMcW4L828Af4P+TO1YztfZOYXVGUxLueOC6P 3M1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GNtd16xG; 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 u19si3666494jat.59.2021.09.20.18.52.22; Mon, 20 Sep 2021 18:52:33 -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=GNtd16xG; 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 S1358404AbhITSGb (ORCPT + 99 others); Mon, 20 Sep 2021 14:06:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:58466 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356676AbhITSBA (ORCPT ); Mon, 20 Sep 2021 14:01:00 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3405B6322A; Mon, 20 Sep 2021 17:15:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632158158; bh=TUEd5GgCPvHCqT4uiCo//+eCmN6z45ot8WQiTPkqidw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GNtd16xGavbfs1w5fqFOZLno3mrcbu8Pygve3Ki4dqEVUogLYW1hiz9YvKO1wS01R idAhn0+GLFmW2KG5Zdfws23u9N6hFE7B8fEfPojUimyh3kO4X+rHT/RV2EbcaX2xi0 tO9vd2AghXNWbGfz8a2B62tDdtFBSw1C1zmRo/yQ= 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.4 028/260] ARM: 9105/1: atags_to_fdt: dont warn about stack size Date: Mon, 20 Sep 2021 18:40:46 +0200 Message-Id: <20210920163932.079793660@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163931.123590023@linuxfoundation.org> References: <20210920163931.123590023@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 @@ -90,6 +90,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