Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp724625pxb; Wed, 8 Sep 2021 10:47:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6XjaaEpb84/HiH/IVb62sJ255kgoEOey5zlJ5AY4I0jhe8Fe7oV/rMKXtMHsIAOsHQTJb X-Received: by 2002:a05:6638:d0a:: with SMTP id q10mr4833933jaj.14.1631123269319; Wed, 08 Sep 2021 10:47:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631123269; cv=none; d=google.com; s=arc-20160816; b=aa8+OwSxdUZa9j4pgFtbxuGjwU31OHs6AVZavmZIYHK1MxqAysu9goiJ7M66T9N2Pq QmQyWan3t1H38CJmOKSTin89aM+nrPiHpD6vsyy2+SkSXSildaoI61Ap9cWFAo+VDdiK JEE4qP+PL9N3KuOjDHJXarHS38v9zQurUzCP10/LuJ8OqzqS/HFuiuBKk7GwKtCvDXRS A3Qqg3yqYmvZNE1jQJGEuK+Vp3T3b5VTnEIF/LaYYUiW8DLpv1s2Iwb/GwMLniRUCsYl gWRmtlVUH7Q3Ef50M8ccBrBIICu+0zQXFp6cDnPVEoyuL+4Dwt3QrofwKGQRpRLXGD5w NVIA== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=YocfsSICyy0YvNzWymc2ZX97bRFB7tIl9cnWPIXKEp4=; b=aYb6reZqEWEklUy/xok2APU2rSH1BcD/2DlCCnn18r/XCGDlatxucUJKSbuWr5/DiN G5L7GBVdlufDufof2dviEvKgdkzjLXUGS4uymYGZJ2xRENxMNMwdH/hHrjn88IuqfCOZ 5snbjvw3XYL4GMtVz3zzWpwoY9UaMst+111SFcRO5sw9QBhsw6SUre+kbwqg3oWD8N4m FItK3j893XwpHWZEgSvkzZojeGbvojA15a0qPRDchougl6Q3jpiGXij6jgoW0Ibqez/5 IMvaeCDhbOhPWOLCMOuLGpnCqsjP8VSho+IQMoZpF2Es3MDQXPuzHUsSu92ZXCL2VJZq 9NAg== ARC-Authentication-Results: i=1; mx.google.com; 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 n24si2393685jac.76.2021.09.08.10.47.37; Wed, 08 Sep 2021 10:47:49 -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; 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 S1348298AbhIHQNo (ORCPT + 99 others); Wed, 8 Sep 2021 12:13:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:37344 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230091AbhIHQNn (ORCPT ); Wed, 8 Sep 2021 12:13:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DBCBC6113E; Wed, 8 Sep 2021 16:12:33 +0000 (UTC) Date: Wed, 8 Sep 2021 12:12:29 -0400 From: Steven Rostedt To: Linus Torvalds Cc: Nick Desaulniers , llvm@lists.linux.dev, LSM List , linux-toolchains@vger.kernel.org, Arnd Bergmann , Greg Kroah-Hartman , Guenter Roeck , Kees Cook , Mark Brown , Masahiro Yamada , Nathan Chancellor , Michal Marek , Andrew Morton , Vipin Sharma , Chris Down , Rasmus Villemoes , Daniel Borkmann , Vlastimil Babka , Linux Kbuild mailing list , Linux Kernel Mailing List Subject: Re: [PATCH] Revert "Enable '-Werror' by default for all kernel builds" Message-ID: References: <20210907183843.33028-1-ndesaulniers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 07, 2021 at 12:16:22PM -0700, Linus Torvalds wrote: > > That's the POINT of that commit. That "but but but I have thousands of > warnings" is not acceptable. I'm actually surprised you did this after the discussion with gcc warning about using "main" as a local variable. > My "no warnings" policy isn't exactly new, and people shouldn't be > shocked when I then say "time to clean up *YOUR* house too". Note, ktest has a way to create a list of current warnings, and then test your code against it, and will fail on any new warning. I run this on all my pull requests to make sure that I do not introduce any new warnings. That said, I still get bug reports on various configs that I did not test, where my code introduces a warning. I hate to be the one that fails their builds. It's not the configs that have something enabled, its the configs that have something not enabled, where another config depends on it. I'm not against the -Werror. I just don't want to be changing local variables called "main" because it breaks someones build due to some daft warning that the compiler is emitting. -- Steve