Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp2910301pxb; Mon, 6 Sep 2021 08:03:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrk42URYfp/dKydVctorFZOQV2GIme67ZcErAYOEAfvTu5Y9raXNPhR1iFQeJvwH3FNoZE X-Received: by 2002:a05:6402:332:: with SMTP id q18mr13511021edw.127.1630940612585; Mon, 06 Sep 2021 08:03:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630940612; cv=none; d=google.com; s=arc-20160816; b=A8bOfwvmpbF7ASrsPZgVMJeP0QMigOpAxnse6N9/Izv/zqTwO87r80mLvmqxbCSX1t V8oXvYy4e8Lje5rEhpRuBZJahqmsvDxc+1R3ft7hxFPxVRieXPSySATxg1QIu5pGE632 0w17En8iZDDyTJ6dEnhil2meUdr4j8wW/mWSGF7XwuYk9H0eXvzf4AXDRlQgApV7peYQ ZXqwH0YFIAonMsr2fMFLi/gM3pz66uNdhuaPWiHpUXDgPQjtV+DLQVDRTaI1qYKlA8Wt 6dX0fOco7iI5OAa+OX2mVeTwLpD2x8ioX/Z9C5InxpX5W30ZhjVTkYCv7MZdgLQVL95Q d2wA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:sender:dkim-signature; bh=+maAuwalXSsguMLnJAfhhVerYs8jlKHmc+ZEHM5brrE=; b=kr4jowiOueJI+FWTHjPxRpEqX8XH7hCJboL/gGh24sZ9EqnA+7sHjjEnJpcfhvDObj EUMsqhKY3p0geJwTSG6aYgjAcB/5w37sGyuQxUXVISr5/VGG9jSlZBJefm49Qc3nfOmm 10h/MCKTDZ2FOF5FkZLT8WYmAgzWlKWa21yDIH/5G/gGj8Sd5h68YqfxHgSpwXNQ0iTj Z7DmNnDXNcEwrZCJv6TPsGvPVElp6Yqx9G8/oIzYtdjg2MjX26cS8xsC7CYQgpbhndCq ZTh/vhbs0Bh7GWsT8oCaQBxr9KtOMRpwZ4XPjR/0Ry8UrQRMQkRwszqqpI5eEQtTmOVD B5vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=iElyC6jr; 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 w21si8372299edt.523.2021.09.06.08.03.09; Mon, 06 Sep 2021 08:03:32 -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=iElyC6jr; 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 S243271AbhIFO1X (ORCPT + 99 others); Mon, 6 Sep 2021 10:27:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236950AbhIFO1X (ORCPT ); Mon, 6 Sep 2021 10:27:23 -0400 Received: from mail-oi1-x229.google.com (mail-oi1-x229.google.com [IPv6:2607:f8b0:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2868C061757 for ; Mon, 6 Sep 2021 07:26:18 -0700 (PDT) Received: by mail-oi1-x229.google.com with SMTP id w144so8997527oie.13 for ; Mon, 06 Sep 2021 07:26:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=+maAuwalXSsguMLnJAfhhVerYs8jlKHmc+ZEHM5brrE=; b=iElyC6jr3F8A3HEbC+wYPfN/MfbHDSZKnP9jjiu+0Hkqb0U+Mk/wuyiqrbOecL1Q7c ahsqAp0embgb6tNptivvq2FEbKuOD7aT+Hc6AzbuG3du2+BhICS02ajg45M6gvLo388R mOB1/6U4d5RH3hYgMrEZMwRQBxgmW0FNvFV8ScshaHzHwQrQ1i4MaERMY8kew094fOOS VJzskfR0GFo0KYwXqZ6i7gYCln2x6ygOYY+7CJTZyo9o06JOGKbqNJSoojnHdG4iuFHG AfWjQ0Q/t3k4ec3SzAij7wH9plxLyHbjBbKVBQ8nSYXd9P+FsIxgj/nBEDzy45O4IgqN ILKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mime-version:content-disposition; bh=+maAuwalXSsguMLnJAfhhVerYs8jlKHmc+ZEHM5brrE=; b=GG5MdpK23esexDF+0q6RyDw7KBKZVuEGF7QCGvcEE3xdHn08lJ5sBpVuSbTlgJ6QqQ LYEpTO28ttgq56d6Tt0i3WfGzRZSEE6GTI9AjQ4/B1rwAGkmrzuLpPxP7j4bPC4TSsnX bx8C1RiIb0L2LFBEQvRNHz27z6MqoYv7modYKlaZ3kEZocyhVJNJ1j+kLtIGvvUqBSEw oQCunXp0mklu5WFcbfSZDGI24+SP4J5TZupHs1T/G/1JWuqswpL0J+mw08sTxOIP2zi6 L2K6lUNpFHsXGEb5JrC1W9R5jFFM26bPhimSzTXYQ0jIoz/TmCDic4EJ+dGo2BSjFHsJ RzTw== X-Gm-Message-State: AOAM530q+umJm69T/77tpfLQAPYoWIzAP2E+hKhVbCBgtPwrnflCvIi3 PIoInA/k+/EEw8xQlSDbQEfIZmFLRak= X-Received: by 2002:aca:ac13:: with SMTP id v19mr8751534oie.93.1630938377939; Mon, 06 Sep 2021 07:26:17 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id b3sm1508101oie.1.2021.09.06.07.26.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Sep 2021 07:26:17 -0700 (PDT) Sender: Guenter Roeck Date: Mon, 6 Sep 2021 07:26:15 -0700 From: Guenter Roeck To: Linus Torvalds Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] Enable '-Werror' by default for all kernel builds Message-ID: <20210906142615.GA1917503@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 05, 2021 at 11:24:05AM -0700, Linus Torvalds wrote: > ... but make it a config option so that broken environments can disable > it when required. > > We really should always have a clean build, and will disable specific > over-eager warnings as required, if we can't fix them. But while I > fairly religiously enforce that in my own tree, it doesn't get enforced > by various build robots that don't necessarily report warnings. > > So this just makes '-Werror' a default compiler flag, but allows people > to disable it for their configuration if they have some particular > issues. > > Occasionally, new compiler versions end up enabling new warnings, and it > can take a while before we have them fixed (or the warnings disabled if > that is what it takes), so the config option allows for that situation. > > Hopefully this will mean that I get fewer pull requests that have new > warnings that were not noticed by various automation we have in place. > > Knock wood. > I guess the good news is that some builds still pass. Build results: total: 153 pass: 89 fail: 64 Failed builds: alpha:defconfig alpha:allmodconfig arcv2:defconfig arcv2:axs103_defconfig arcv2:vdk_hs38_smp_defconfig arm:s3c2410_defconfig arm:ixp4xx_defconfig arm:omap1_defconfig arm:footbridge_defconfig arm:keystone_defconfig arm:vexpress_defconfig arm:imx_v4_v5_defconfig arm:s3c6400_defconfig arm:s5pv210_defconfig arm:integrator_defconfig arm:pxa910_defconfig arm:clps711x_defconfig csky:defconfig h8300:edosk2674_defconfig h8300:h8300h-sim_defconfig h8300:h8s-sim_defconfig hexagon:defconfig i386:allyesconfig i386:allmodconfig ia64:defconfig m68k:defconfig m68k:allmodconfig m68k:sun3_defconfig m68k_nommu:m5272c3_defconfig m68k_nommu:m5307c3_defconfig m68k_nommu:m5249evb_defconfig m68k_nommu:m5407c3_defconfig m68k_nommu:m5475evb_defconfig microblaze:mmu_defconfig mips:allmodconfig mips:bcm63xx_defconfig mips:e55_defconfig mips:malta_defconfig nds32:defconfig nds32:allmodconfig nios2:3c120_defconfig parisc:allmodconfig parisc:generic-32bit_defconfig parisc64:generic-64bit_defconfig powerpc:allmodconfig powerpc:cell_defconfig powerpc:maple_defconfig powerpc:ppc6xx_defconfig powerpc:mpc83xx_defconfig powerpc:tqm8xx_defconfig powerpc:83xx/mpc834x_mds_defconfig riscv32:allmodconfig riscv:allmodconfig s390:allmodconfig sh:defconfig sh:dreamcast_defconfig sh:microdev_defconfig sh:shx3_defconfig sparc32:defconfig sparc64:allmodconfig sparc64:defconfig um:defconfig xtensa:defconfig xtensa:allmodconfig Qemu test results: total: 479 pass: 340 fail: 139 Failed tests: Guenter