From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 454D6C4338F for ; Mon, 9 Aug 2021 15:45:02 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0226760F93 for ; Mon, 9 Aug 2021 15:45:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0226760F93 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Q/UTyPbsG7IENPdm+DS/p4k5x8r2eU91TUowejolJqI=; b=ITtk/ftlPeOCtE 73XcKnFcaeccZmxTu9qakw7UeaAd0eKrMJB41zOZQgBdqsjR7g8NCzp3y7xQ4fKOvlzwJ6c2sGhsJ TCxe8InutKs5W2YbYnB9mqd3i92fEmCGf42SAUI4K2y5WL754qUxlUF/VgQgvtFEor2DEogmX/2Vv El77yaX85GwFPG+rP+34gBd7t8kU8yfileNnW+5/yS8xrQKrG81tOfGhEaF3uQk69qHGCDqYwlDMA tyCbL5ZzYlAKXj/Fej+74SzR7UJVS9IYtC3K401ZNPBle873Rrrm8BLyT8Fmf4uo43vjx+lv9bSRO aMYQKjh35jk1wYihwr1Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mD7QP-001Eou-Aa; Mon, 09 Aug 2021 15:42:50 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mD7Ad-0017mr-9J for linux-arm-kernel@lists.infradead.org; Mon, 09 Aug 2021 15:26:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=LHtWttbPcNIV+8uOkGGlKUxbwyqqXh3re7hu/BS1IJk=; b=tLeIZ5IB0Dk/kUi+zEHT6ya9e QHgTSoKWaCPYKABO6465OQ5H+eoasC8yk6J4NuN84ho679JCMaNxCTaLrzhqIHxf5ERjqtbLqLHJu VrDKpvxj+nBoWP7CeSfDnizscmnth9kpq1yS3drZm6UNv0LdZObC7yG3KJKNjBGNv4aJUaSt3Mvs6 R1LBegN/X2svwKOFke/Eu5HQXo9whvL7G/ee4FQqTqvtCmTQYbx3HyJ7UyAVpZOU0SaMlywwXxQZC jvQ1jglE4L3BTcvOS+bBjMZSFwXOiLBGwVGlQt7E8HmYraB4bjb63KGwXhiYfSvklVrUYc44cWTQr SOl3Li+9Q==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:47116) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mD78Z-0005rv-6s; Mon, 09 Aug 2021 16:24:23 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1mD78X-0001Hd-RX; Mon, 09 Aug 2021 16:24:21 +0100 Date: Mon, 9 Aug 2021 16:24:21 +0100 From: "Russell King (Oracle)" To: David Heidelberg Cc: Arnd Bergmann , Jon Medhurst , Ard Biesheuvel , Marc Zyngier , Nicolas Pitre , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] ARM: atags_to_fdt: don't warn about stack size Message-ID: <20210809152421.GU22278@shell.armlinux.org.uk> References: <20210809151021.5137-1-david@ixit.cz> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210809151021.5137-1-david@ixit.cz> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210809_082631_427351_5EC96A74 X-CRM114-Status: GOOD ( 20.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Aug 09, 2021 at 05:10:21PM +0200, David Heidelberg wrote: > 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. > > Original Author: Arnd Bergmann > Reference: https://lore.kernel.org/lkml/8232115.18ykgQ6J5T@wuerfel/ > > Cc: Arnd Bergmann > Cc: Nicolas Pitre > Cc: Russell King > Cc: Ard Biesheuvel > Cc: Marc Zyngier > Cc: linux-kernel@vger.kernel.org > Cc: linux-arm-kernel@lists.infradead.org > > Signed-off-by: David Heidelberg I assume Arnd never sent his v3 from what I see in the thread you link to above. This needs to go to the patch system to be applied. Details in my signature below. Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 87B2BC4338F for ; Mon, 9 Aug 2021 15:24:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6571060F93 for ; Mon, 9 Aug 2021 15:24:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235075AbhHIPYy (ORCPT ); Mon, 9 Aug 2021 11:24:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233707AbhHIPYu (ORCPT ); Mon, 9 Aug 2021 11:24:50 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64E9DC0613D3 for ; Mon, 9 Aug 2021 08:24:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=LHtWttbPcNIV+8uOkGGlKUxbwyqqXh3re7hu/BS1IJk=; b=tLeIZ5IB0Dk/kUi+zEHT6ya9e QHgTSoKWaCPYKABO6465OQ5H+eoasC8yk6J4NuN84ho679JCMaNxCTaLrzhqIHxf5ERjqtbLqLHJu VrDKpvxj+nBoWP7CeSfDnizscmnth9kpq1yS3drZm6UNv0LdZObC7yG3KJKNjBGNv4aJUaSt3Mvs6 R1LBegN/X2svwKOFke/Eu5HQXo9whvL7G/ee4FQqTqvtCmTQYbx3HyJ7UyAVpZOU0SaMlywwXxQZC jvQ1jglE4L3BTcvOS+bBjMZSFwXOiLBGwVGlQt7E8HmYraB4bjb63KGwXhiYfSvklVrUYc44cWTQr SOl3Li+9Q==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:47116) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mD78Z-0005rv-6s; Mon, 09 Aug 2021 16:24:23 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1mD78X-0001Hd-RX; Mon, 09 Aug 2021 16:24:21 +0100 Date: Mon, 9 Aug 2021 16:24:21 +0100 From: "Russell King (Oracle)" To: David Heidelberg Cc: Arnd Bergmann , Jon Medhurst , Ard Biesheuvel , Marc Zyngier , Nicolas Pitre , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] ARM: atags_to_fdt: don't warn about stack size Message-ID: <20210809152421.GU22278@shell.armlinux.org.uk> References: <20210809151021.5137-1-david@ixit.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210809151021.5137-1-david@ixit.cz> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: Russell King (Oracle) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 09, 2021 at 05:10:21PM +0200, David Heidelberg wrote: > 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. > > Original Author: Arnd Bergmann > Reference: https://lore.kernel.org/lkml/8232115.18ykgQ6J5T@wuerfel/ > > Cc: Arnd Bergmann > Cc: Nicolas Pitre > Cc: Russell King > Cc: Ard Biesheuvel > Cc: Marc Zyngier > Cc: linux-kernel@vger.kernel.org > Cc: linux-arm-kernel@lists.infradead.org > > Signed-off-by: David Heidelberg I assume Arnd never sent his v3 from what I see in the thread you link to above. This needs to go to the patch system to be applied. Details in my signature below. Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!