Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp234216pxb; Wed, 8 Sep 2021 23:02:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmovnWYz/5RvqCJRdSt3n3KQ8F7SAFME1p0hVKT47A8kK4RE/4GyU0YVnTNoAWLVQM+eXu X-Received: by 2002:a17:906:7e49:: with SMTP id z9mr1562779ejr.380.1631167329812; Wed, 08 Sep 2021 23:02:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631167329; cv=none; d=google.com; s=arc-20160816; b=KmLi1b6ODu2f+1ZirfnIYL1o2tFNrO+Kg+oOdAJJIgIA6GWEdSvRAEPW6mXYNhkBAa CzLFDrgVurXLoJ74bvbqDjtyGg8fHxRrtgSPqZ8T8Ww4wCjGt/oTIS6rjXm2S2MloBNe tWTntyY6bJNp36CRheVZD9QH5vfWvfzb6+2tuoBnANv7qx489L1GE0Lrj5/GXeoTEcOC nXZi0xCM4rVqr361bYbbkCgWdZRklTJu6r5aMUD14QUZ7SZn+t34zunmeRib+qMAtVps uUqUKo7DudlIbWtvqJkGYkvqoAzqDuZ7jl64tsYpPhnc7xNrmBCIFPQdrfo7WN+l+P73 C54Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=EmyOmO4OA1vu17LO++qu8IgyrFImV3HoLCHV1XeAKXU=; b=QMKpU8aZADUs7MjOLHWhn2gv0CGtVa7Udi9aDzWhThJAPbyZgrh/nIvwaL3g06TPkr jbBn1ZSF8bzdIqAcnv/1f6+puPSSmGlv4MmefmY3MRrqyp5J4puCp+og3sUyUs4aWZSL HFJ4pD7wX7hjLPIhC6UI2LaCn1Dnmkans/jwammCcudAzI1V2ov79+PBb/0IMaccCSr6 xazWOh1fGKnDo4otcYEpprYf9IidBFiaqaHyVqIUF2aH3ZhfS2M6Qw0H/AirTUuqI5yZ h92rGAiMU+xtZ2XMpcBHLti47qgkwEtM75F3xUKvjVAyNCYMplbHQ2gWgo7VmMyT8AlF bOnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=m7G+7uoz; 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 ca15si876549edb.208.2021.09.08.23.01.44; Wed, 08 Sep 2021 23:02:09 -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=@infradead.org header.s=casper.20170209 header.b=m7G+7uoz; 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 S1350961AbhIIGBP (ORCPT + 99 others); Thu, 9 Sep 2021 02:01:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350955AbhIIGBN (ORCPT ); Thu, 9 Sep 2021 02:01:13 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4C92C061757 for ; Wed, 8 Sep 2021 23:00:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=EmyOmO4OA1vu17LO++qu8IgyrFImV3HoLCHV1XeAKXU=; b=m7G+7uozvp+6qWoVstSpXJCgaX UPOdR2T7SaQtREbiqpM6Jcsh5kaHXhhj3aflDl5LkolWq3yc27aonGNNrXtPKCr4tb5Uy2lVEExDP 8zROfQNLR6zByM+dZokX6WIBi3FnjaCUChyLZmAkNIbZzSLhZMXNaOZN9r0BEyYXJttayMFKqt15c OS2R1emd8XY987B+kWdUPOJYTR0OjotOItygDpYek33SuKTY8EcDJkR4XmQRXyunwghdk/0L/QExf +xJ7HG7FkmIFERFpzkFMIdCo35aQxb8lqtvvw2CRQKyytkhukTWgTJu/D/V+arn0kWKLJ6xwR32Fo WvKtaFUQ==; Received: from hch by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mOD4f-009WcX-Hg; Thu, 09 Sep 2021 05:58:27 +0000 Date: Thu, 9 Sep 2021 06:58:13 +0100 From: Christoph Hellwig To: Marco Elver 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, Christian =?unknown-8bit?B?S8O2bmln?= , "Pan, Xinhui" , amd-gfx@lists.freedesktop.org Subject: Re: [PATCH] Enable '-Werror' by default for all kernel builds Message-ID: References: <20210906142615.GA1917503@roeck-us.net> <75a10e8b-9f11-64c4-460b-9f3ac09965e2@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. While we're at it, with -Werror something like this is really futile: drivers/gpu/drm/amd/amdgpu/amdgpu_object.c: In function ‘amdgpu_bo_support_uswc’: drivers/gpu/drm/amd/amdgpu/amdgpu_object.c:493:2: warning: #warning Please enable CONFIG_MTRR and CONFIG_X86_PAT for better performance thanks to write-combining [-Wcpp 493 | #warning Please enable CONFIG_MTRR and CONFIG_X86_PAT for better performance \ | ^~~~~~~