Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3983681pxb; Tue, 7 Sep 2021 11:52:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIBnvxP87/HP5UbzC1gpE5DHEpu0ZgqXiy1c4smg2qPRbm/5hOUx0IsZ+Mms2rxUNTWGjl X-Received: by 2002:a17:906:2a0d:: with SMTP id j13mr740953eje.545.1631040737322; Tue, 07 Sep 2021 11:52:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631040737; cv=none; d=google.com; s=arc-20160816; b=sk1o9opD1YU5ovBRDENzlnpE0sqqm2o9kdbCqWXULSXtbey6aFw4Ai6hN44ta6Nd8J nkdlr0EkjgnoB+yjKUqOZIgqO2iBEliz1UQzJDZhPl5gAJG96BGuCamjjVDR9NyEwSQz yFonx52IJG6nWD5hvBDwZMfuu0ZTId3+eDbDxlhb1yDtTY4xgOAoYgOUJ7/cwHyYBWqf OovtVTAaXJ5GT29E5m0dh7l84NPQCjSM5PNROYRCRcUvOVhq4myh0uNmE4FPGUW/VNPI Fq1NmQ37ClYqbV6laFJwI4M507KDylj+WQiNi6lKjhPs0773GYBsKv3ZmA+N5ITiJuUI Kbkg== 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:sender:dkim-signature; bh=vJ+gvRBAJLYeXIcZ9ApCagIly/vKGuQEYDnPNSFOA74=; b=UlA/HdPtcMCqBZrH7+zKZ+uCOWclqBjEk/vcsdXAyiVTHiGvSIB6gZO8Px84DChg1R aizo0wyS2/zLFpWH/PG9a2fzsGKzY/9jVLcwtk5lAbeCwFFlQWRhJuvM3Sobjh0K1cny aPGYqmlbm6B1QY9OisOc+kI/nWoN9S4IL7B1Q5t00SK9tJ4/s96saly2dXBLhFgMGv4Q wZ/Dhpiss2jOPlqyR5g0IEZEssRE/M+hZo/njhxC5ABiRS+jHrx7enFiUUHJb+mOgIg8 v9/LMJkgIV5BbxOBbo4DNVNQ5bBvTyrjlZRU9VQ+HdLtF+gpY8pSLAxf776w1qWjSEp7 b39g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="da/6Y3fG"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w21si3054445edt.523.2021.09.07.11.51.54; Tue, 07 Sep 2021 11:52:17 -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=@gmail.com header.s=20210112 header.b="da/6Y3fG"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234625AbhIGRuN (ORCPT + 99 others); Tue, 7 Sep 2021 13:50:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229561AbhIGRuC (ORCPT ); Tue, 7 Sep 2021 13:50:02 -0400 Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FB3AC061575 for ; Tue, 7 Sep 2021 10:48:56 -0700 (PDT) Received: by mail-ot1-x336.google.com with SMTP id 107-20020a9d0bf4000000b0051b8be1192fso78515oth.7 for ; Tue, 07 Sep 2021 10:48:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=vJ+gvRBAJLYeXIcZ9ApCagIly/vKGuQEYDnPNSFOA74=; b=da/6Y3fG+8wHReQooEtxzXUpiQLf3IWvfdjkVdTLWT2s6Am+/9Clj0sMfgbAubv61Y BgT4uzkRcaiQPcRttX181tb2auxOCGD3PEVUztHsICbha/tmxDfRg0dV1PXCM8xc7oLS TFK/C/2raqkmh2b053q0mdZwTtvGpYpwY3aUnLP+9xjcGPvXBsSj0XiTKzjD1ANwsvjn EdPljMIr1yAVaqIpqmUAgtdHZlBw3Xk+WvEmuqiFZ5Zb+qe+xZX9wubtk0o6dMP3+Idv Zv8jazx1DSakndwOsWER90iZnVklgw5Hp4qR0QoJ+OMaIfRPDHK4yK0DGKQSrnamA75g 63Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=vJ+gvRBAJLYeXIcZ9ApCagIly/vKGuQEYDnPNSFOA74=; b=cxmMro2jwZpyNbIZyAmuZywrFKtP477okw0OcDp9uNF7cxEtzrcO0WLx+S2slg1WNX gqJBVsJoSRIApFsJ/ZMEtohJRMn9jqTNSJBdYjQ0pwlQjDEMV1qNA2WXTac1NvxTlSkL uCEzBonrJazoQX1NInfezqC5upXXGV+ohVZfBd1fwy7om8L6bYm2xjmYZW2Qr1Aljqpr y82nf2eKmS/zcBiy9A/r+0BPh5rZRipd48zNPetrmo+8qHF+KKtRCr06bGlBbTBu4Hlc VTQXrw8UMUZa3mOAk7mCQ/EdGThBGVS54fk7vW5j+DZ810n5Yb6kyOhHraBVARy6/E9j uoYQ== X-Gm-Message-State: AOAM531QFBE1ERXg70iZKMLH1hfx9DXGmP89EXvYXkgLBo+1oEAtjDZA W6HslArF/+fWh9ItDa9fF0qREX6+RDQ= X-Received: by 2002:a05:6830:4411:: with SMTP id q17mr16455010otv.48.1631036935500; Tue, 07 Sep 2021 10:48:55 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id 21sm2378650ooy.5.2021.09.07.10.48.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Sep 2021 10:48:54 -0700 (PDT) Sender: Guenter Roeck Subject: Re: [PATCH] Enable '-Werror' by default for all kernel builds To: Linus Torvalds , Arnd Bergmann Cc: Nathan Chancellor , Linux Kernel Mailing List , llvm@lists.linux.dev, Nick Desaulniers References: <20210906142615.GA1917503@roeck-us.net> From: Guenter Roeck Message-ID: <1b7cac01-adab-e2d4-769b-b14ed8903ad9@roeck-us.net> Date: Tue, 7 Sep 2021 10:48:52 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(). Guenter