Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp410131pxb; Thu, 9 Sep 2021 03:55:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5ifO8zkIaffMCR5d3ijT20tKv71qlvRwi0ODVEFO+bUzQlFiiaiQyndIJCieQJ57sYh2/ X-Received: by 2002:a17:906:2505:: with SMTP id i5mr2737900ejb.450.1631184913822; Thu, 09 Sep 2021 03:55:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631184913; cv=none; d=google.com; s=arc-20160816; b=m2eUzyda6hU5BBPFc7EeucqDLt1JjuZ401kyLyvpwl4U11ft8DFvQ+ArBUmb73NbGj wuq9rIsPFp2/F93TGlgOp4rJElh9LBy5dHfIEYRo/AAdpsIxnYLHHXR9a0IeXnIJfKSI P4U5CM6CkCbl7d2LyM/U50BFJtCTHPpJ03JM4+STfIktyXJwpcSzYDQ2Wr/2Hj8mrYow 4w7dSdolq9DiTzG/fgQ/GliIcpXFIhzlod5Cj3D3seKpPCGNbteeWJeqQLDCIq6BNU0U IgvOUy3Ls8AIfQHq0qjn4FSjKTcYXfnamXhZHB+U9sZnhf4JoKzlgI7n8QKhQTdaC1HX h4hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=fU5ufvRRjTtfwnNvK13MR5zMOLz3I8fk1OzlUMqINLQ=; b=gI0EY0zxzJwjo2wK5VNyxkCbzO+73TyNmQ+qqMkQLFVdNLM6dRlMTkaluIJHvgaQk/ FQhUOBdqV5HZ9pqEhWSK0/QjFVzV9sFEDfA2lLYcdtEjmQSvNmMtpGF/dckuWss1/Z6Z 7CMwG8akAfG7CFyfhA7lCPRiLb40vFBK/GK8wOIFFThPhgRudioGzPdJ4o8hzMgDcYA9 3/1Om55XT8bVdeeiW/IcgQnNIJEakOTCn6WHkeAwONtAIcEmebte4gTCvpyqizl0EhJL 2/XMqjNppOr7ywFuA/XTMtJzEmfC8KIFvgRoO1vBFxAK1OG9z96plT2Bo1qOuP7ACfHl rdzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=svEsGSMu; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h15si1516739ejj.98.2021.09.09.03.54.48; Thu, 09 Sep 2021 03:55:13 -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=@google.com header.s=20210112 header.b=svEsGSMu; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234216AbhIIKyb (ORCPT + 99 others); Thu, 9 Sep 2021 06:54:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232903AbhIIKyY (ORCPT ); Thu, 9 Sep 2021 06:54:24 -0400 Received: from mail-oi1-x230.google.com (mail-oi1-x230.google.com [IPv6:2607:f8b0:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94BBCC061575 for ; Thu, 9 Sep 2021 03:53:15 -0700 (PDT) Received: by mail-oi1-x230.google.com with SMTP id n27so2003387oij.0 for ; Thu, 09 Sep 2021 03:53:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=fU5ufvRRjTtfwnNvK13MR5zMOLz3I8fk1OzlUMqINLQ=; b=svEsGSMujFvTtR4UMtARJNXuZvz+U/550aXRIc+7UMzXzxYASPNNCNz75C6NHgXQGg dVJIPTelpAL58scaurL0kBQOQTMznlEy8QRnyHQfYxdvgW794LiM1IeQsfZLCEJ22GDQ qeYJDSw9yib0rswsAY4EiMIpR09/rniDzcmwUBU47L1cdLS7q206vZncbq5ddz/unqpR JjT6q7GZ3YxYt0F0WB2frZxiJ2+sILr+1ax6Ri2HSHO4/nyZOnqbiOVisCjJQDDu6QAo hcv1jpLE7VOWgiP2TLIVuvoIKnrgb/YQjoBfw63Ub7F4cpzR210zw6O/4AgWl9NTv+i7 YCmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=fU5ufvRRjTtfwnNvK13MR5zMOLz3I8fk1OzlUMqINLQ=; b=c3c2LU4qn6C3EsI3Moeav3RxnMf01jh7y4t60nK5iWeLxwt+SL/WeiEyBknjGZKYYi paShmYt038N2nDCfh/AIE8ikOf8l26e3KDfULJ95Onm99+gKW/Pv7oYjm1qtlzM5N62X tRRgqlFC/mEIPoZYRV8z84YMAnLFaSLTWCTSuqXoXUumDvx22NXqxqs9wTEPQIcDW0RP XbJJypLE38z6VkKg585ms9q2q7fZHc5eRxCrUvWnez7z08CHl80f0WC+AkcfZs/PYbyQ u8xPrXdPwr2fi85xd6VJ+Y5om1Vy3Hc+tiLOjgALzHVcrnx4cpLVZYliaRLzDHHMRhrX vvLQ== X-Gm-Message-State: AOAM531qTS3BYtyTDdPm1p5BgR70Ke22lyMYb6O/kX/57c5LaGHN41kl qxScVsEgkh/nL+yrUUkOJ+nbilFL0wjJ/0215H3l0Q== X-Received: by 2002:a05:6808:21a5:: with SMTP id be37mr1443831oib.172.1631184794726; Thu, 09 Sep 2021 03:53:14 -0700 (PDT) MIME-Version: 1.0 References: <20210906142615.GA1917503@roeck-us.net> <75a10e8b-9f11-64c4-460b-9f3ac09965e2@roeck-us.net> In-Reply-To: From: Marco Elver Date: Thu, 9 Sep 2021 12:53:03 +0200 Message-ID: Subject: Re: [PATCH] Enable '-Werror' by default for all kernel builds To: Christoph Hellwig Cc: Guenter Roeck , Nathan Chancellor , Arnd Bergmann , Linus Torvalds , Linux Kernel Mailing List , llvm@lists.linux.dev, Nick Desaulniers , Paul Walmsley , Palmer Dabbelt , Albert Ou , linux-riscv@lists.infradead.org, Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Andrey Konovalov , kasan-dev@googlegroups.com, =?UTF-8?Q?Christian_K=C3=B6nig?= , "Pan, Xinhui" , amd-gfx@lists.freedesktop.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 9 Sept 2021 at 07:59, Christoph Hellwig wrote: > On Wed, Sep 08, 2021 at 11:58:56PM +0200, Marco Elver wrote: > > It'd be good to avoid. It has helped uncover build issues with KASAN in > > the past. Or at least make it dependent on the problematic architecture= . > > For example if arm is a problem, something like this: > > I'm also seeing quite a few stack size warnings with KASAN on x86_64 > without COMPILT_TEST using gcc 10.2.1 from Debian. In fact there are a > few warnings without KASAN, but with KASAN there are a lot more. > I'll try to find some time to dig into them. Right, this reminded me that we actually at least double the real stack size for KASAN builds, because it inherently requires more stack space. I think we need Wframe-larger-than to match that, otherwise we'll just keep having this problem: https://lkml.kernel.org/r/20210909104925.809674-1-elver@google.com > While we're at it, with -Werror something like this is really futile: > > drivers/gpu/drm/amd/amdgpu/amdgpu_object.c: In function =E2=80=98amdgpu_b= o_support_uswc=E2=80=99: > drivers/gpu/drm/amd/amdgpu/amdgpu_object.c:493:2: warning: #warning > Please enable CONFIG_MTRR and CONFIG_X86_PAT for better performance thank= s to write-combining [-Wcpp > 493 | #warning Please enable CONFIG_MTRR and CONFIG_X86_PAT for better = performance \ > | ^~~~~~~