Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1748419pxb; Thu, 16 Sep 2021 14:45:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbKxyqsRmHoAffB0yPwsR1tr1lEXskGzcT/7Qb0/qMrZ8+NxGXjUulGC9VjHwHQyobbTbu X-Received: by 2002:a5e:dc0b:: with SMTP id b11mr5830008iok.91.1631828727105; Thu, 16 Sep 2021 14:45:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631828727; cv=none; d=google.com; s=arc-20160816; b=RgMizAmvlzotp+GmFDBdozcafuOxa7xG1CNVdXsVdWcAf0qFgoCrrsudrqJf69HxRv ZFJV9ROG43S9ryiGIPlfKnTjSljULP74gu3Qkjow65syBTZ4U8PAiBidg6L9lIpvjdpx GmEFfjG6trtPdwp5UCZmqAcELiLfrZSA3JMlJdXFM0lOr4OGuGuziJ84uxsbRljZCsPW 31jU0TZEjh/bWl7CHztSfRbS/LHyrG8qVdYVla+tSewqGyODSY70qxTJWLtG72nvCbhs 3YoQa70CM29I2eOixKXkbM/KOxMzJetaDD64ng3gKK8PLVac2JhxgjX2dldh0xV1VwLh XnTA== 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=kkjP7EA3bX98XxD4+XsBybRyJ4e3pHtlXhXks4ao+JU=; b=wOTYMb2GpAW1H5drPBIJbZSvd4TuBuEkmZn3CySsjOQsDma2bj8fkFVfrQI1n64RMM OwpRYX5t3q9Zr2THoMjKWArtHXovksRUnsSmuzB+ezGdCZx63+xA/uS1MmWu0pknSRuc Q9lDPQXqVX2fednt7zA3oBkK1C+4Y5hLUBR8v7Gw8hvq+mTrbB533vI4HYTO1UoGVt4P DOuSgwpksUqrazZ7hZ/Dj/xc+XFqLbtIy6vuXSASO8x8CmD71jmDHEnjPJ2ChXr+5ODU 1xqYmvT4q3vtqacmumt2/vKgNvLCa78jY9vjC2QKN+MjvQ7vFSYLAqT19IXu2tP6y5iF 6OKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Kmb4kARQ; 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 e46si3343012jaf.50.2021.09.16.14.45.15; Thu, 16 Sep 2021 14:45:27 -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=Kmb4kARQ; 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 S244529AbhIPQjP (ORCPT + 99 others); Thu, 16 Sep 2021 12:39:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:44898 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235730AbhIPQbo (ORCPT ); Thu, 16 Sep 2021 12:31:44 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A77DC61A03; Thu, 16 Sep 2021 16:19:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631809176; bh=5OR6E+o4q2AYNSRmd2mvgScYabgkc0xkTQt0UlrvFY8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Kmb4kARQco/B3Qpct1BIdB4Gj2vm3Zii+TrFl20OcGOCl3K9pHAbFCppFUHMeAZmJ 7Y4eZxj0g3EHry/wsISJfPUjuGygepMe7qPJAed491ewY5Rm/HvuIvcqxiE6cO+UH/ M6/qHlYSfXr3OxNuLtKZay3C4zYDcrz7YkUpIAAY= 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.13 058/380] ARM: 9105/1: atags_to_fdt: dont warn about stack size Date: Thu, 16 Sep 2021 17:56:55 +0200 Message-Id: <20210916155805.959751346@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155803.966362085@linuxfoundation.org> References: <20210916155803.966362085@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 @@ -85,6 +85,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 ifeq ($(CONFIG_USE_OF),y)