Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3998422pxb; Tue, 7 Sep 2021 12:13:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaAZ4sbpc4lz2q/+sH5zJo8nGNZE9aPoJEhPbl7PNLyASIcN3YyI1ToY7v0X56OMgF37AY X-Received: by 2002:a6b:f819:: with SMTP id o25mr15016066ioh.21.1631042019628; Tue, 07 Sep 2021 12:13:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631042019; cv=none; d=google.com; s=arc-20160816; b=FWV1STZt6dTEkCt5LCJomqAIL1ZJeRlY64xe9Vn+iiGMiHGWNZgoEfxXWybEriQ5Mv kc8eWUQH+gWFGjB3yDSXek4nt0QkxXB7hgCjW35RBum0EV/XQTUhOjv3dEAm+1aN2VlW OXjGpT9raaqryVN7hqhfKGIvWhJgrTdiigpfBeGjGMGNiiUoJZ5GfS0F8IEakEKAqF70 gjLg5eTCnNMOEOGuIs0LkJCQCw2KCV9FSsemwqhtJQ5CwE9Gd27iW6KDrrKaCfMuiHPC BwYoMtakQwv3A3/aQtgLg3M7vsAplxE7xCDAcgNGUqRWGtkCf0ZkNlCVza6mHA3vXLCK A49Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=imlZsSrwRI5c0WRLsr0Vounlq2UzG0SSF4zBfGSWgbU=; b=XRIoFtO45VhKbAhPnX+8egV8u6MgyKI0mf+3EfSFrQYrZ9B/JMtb0cDzsIWtGJmbWx sxr6XyiJzeW2QRx+vWKYY9V+bg2nWUoeWjIvRkDEz/DXNWObUfjR/2rQMEa/1U0Bxm49 vHVw90gKhkUOwUzwS2I2q5lyqCYQQjmrkLgVm4c73fqTu6GM9SrTzlP3n4mWLttTXB/p rXYgvLy2LA4WmYNCfTRfaz6hi14V4+F3rS9et9K6jub3nGYEZgTCppCMak0wBqFPeV6O PmPkQ6e4L74xOyFiLJcBLAKJ6LpYoU+Vx7sLz7ziJ8eNnUeB6uMAL5x4Ro6r4zh/N3KX NV6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=clAQUC6S; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k2si10666890ilu.143.2021.09.07.12.13.26; Tue, 07 Sep 2021 12:13:39 -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=@kernel.org header.s=k20201202 header.b=clAQUC6S; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345447AbhIGTN2 (ORCPT + 99 others); Tue, 7 Sep 2021 15:13:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:50654 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230203AbhIGTN1 (ORCPT ); Tue, 7 Sep 2021 15:13:27 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 486ED610C8; Tue, 7 Sep 2021 19:12:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631041940; bh=9dkQcKP1D9mdioHnIChZqnmsDboQySZbW/TMDmx+WWs=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=clAQUC6SwmKmhM7Qwd+RtfwMyGn1b093W6hhyo1brvjtPB1qK8jdjMbezgXXpvBE+ wzY+kqApuwW6Ye1+4NeAslJt8y4Ydh8IDzbuiwW/PDotEA1edhpcXq/Zmlmv/GSFTt aoxaHnsC1B/UDMpMHRCF3oT/epmQpV2XOt//JciIx7/txk6boVcb1QTxkiLb2dMXhg jj/l6zy7vIv4FOR/ZYlAvM+5GUw2L5FM5u560Vu2zQFK9LNXVVATCIbOoDsWwDL48H blknugrpqYHdFSoX9BKoJeFurqnvUsVPh+sfeqM4vhwV4X1+T2EtcLc2iuSNxl1IOe RTi3WJB4/egZg== Subject: Re: [PATCH] Enable '-Werror' by default for all kernel builds To: Guenter Roeck , Linus Torvalds , Arnd Bergmann Cc: Linux Kernel Mailing List , llvm@lists.linux.dev, Nick Desaulniers References: <20210906142615.GA1917503@roeck-us.net> <1b7cac01-adab-e2d4-769b-b14ed8903ad9@roeck-us.net> From: Nathan Chancellor Message-ID: <4063ef23-d769-167f-75b4-6a27cee5ecba@kernel.org> Date: Tue, 7 Sep 2021 12:12:19 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <1b7cac01-adab-e2d4-769b-b14ed8903ad9@roeck-us.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/7/2021 10:48 AM, Guenter Roeck wrote: > On 9/7/21 10:10 AM, Linus Torvalds wrote: >> On Tue, Sep 7, 2021 at 2:11 AM Arnd Bergmann wrote: >>> >>>> x86_64-alpine.log:drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:452:13: >>>> error: stack frame size (1800) exceeds limit (1280) in function >>>> 'dcn_bw_calc_rq_dlg_ttu' [-Werror,-Wframe-larger-than] >>>> x86_64-alpine.log:drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn21/display_rq_dlg_calc_21.c:1657:6: >>>> error: stack frame size (1336) exceeds limit (1280) in function >>>> 'dml21_rq_dlg_get_dlg_reg' [-Werror,-Wframe-larger-than] >>>> x86_64-alpine.log:drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn30/display_rq_dlg_calc_30.c:1831:6: >>>> error: stack frame size (1352) exceeds limit (1280) in function >>>> 'dml30_rq_dlg_get_dlg_reg' [-Werror,-Wframe-larger-than] >>>> x86_64-alpine.log:drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/display_rq_dlg_calc_31.c:1676:6: >>>> error: stack frame size (1336) exceeds limit (1280) in function >>>> 'dml31_rq_dlg_get_dlg_reg' [-Werror,-Wframe-larger-than] >>>> x86_64-alpine.log:drivers/vhost/scsi.c:1831:12: error: stack frame >>>> size (1320) exceeds limit (1280) in function 'vhost_scsi_release' >>>> [-Werror,-Wframe-larger-than] >>>> > > FWIW, the above is because of > > static void vhost_scsi_flush(struct vhost_scsi *vs) > { >         struct vhost_scsi_inflight *old_inflight[VHOST_SCSI_MAX_VQ]; > > where VHOST_SCSI_MAX_VQ=128. Presumably some versions of clang inline > this function. gcc has the same problem here - its stack frame size is > also > 1024 for vhost_scsi_flush(). Good to know. When investigating these, I intend to compare against GCC to see what the difference is to know if it is a problem with the code or a compiler issue. Cheers, Nathan