Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2217504pxb; Fri, 25 Mar 2022 13:14:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFQVHKnHp7LQ6PVwDjBMVtB/ttu0uIEvP/X5QbDRoMwGZRqp0jrNCBTpN8lpEuJCADCfEa X-Received: by 2002:a17:90b:3e8c:b0:1c7:462c:af6b with SMTP id rj12-20020a17090b3e8c00b001c7462caf6bmr26526219pjb.150.1648239278257; Fri, 25 Mar 2022 13:14:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648239278; cv=none; d=google.com; s=arc-20160816; b=X7o9pPPpXjdOBlVjWEGgj5IhEEhyJxrr/1CBk4R2ddBUb/oKsJu+6PUCOC/4Jkksnb QUQOMhB0XIHkYd8felrHF0xJ3DBkuRiecU1CaGrr+ydOvGg1QwEFiXOgXZQPLJIzm5dd Xhe0XM1D12bXHr8evMsqi/Iudp/SsEKHvpr5igedM0WP8meKyIMgmYneyn8kwToRCo2U 9rxtKXhKBKq9MDsIBszfKkQZjAB7o/T3Jtt2871wxcbb8DFG5fy3lFB6xCDCh496WFls trXHSWtKjTrWym2qL93IdxYH08nEOrldXoFGt1geKldc4h2MCIl/bZRFw+vCJNj+xUYZ gzfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ePGjuXY8EO300BC/e4D5JyF5EaxATMuVc7TnpwwcYEU=; b=AUxJRYEbbC7hO/m3EqRmdkLPMBYdwPSpo6e1zeCfBNpsGMILHwlph2IJSCdlJOAOga 0QEhvANv8OlMK+bTlI+3I56qVIpx0DfId+T6+3ZI/AHLAfvlFIFYQ38f7dN2DbTuieCN +PehOjq9syeaoYbcFwkrfW+d2RUPvRZVHm/LVRCUTH3+bsyporcaK2qAKr7AkfJrVMQs iNZxTT1mQd8iX1MeCN4iViE9R5JUAmjpZP74uVDdKv1xHmlmnZJMiO6NpjoBovr6PEjy Sjd9ekfLf/lIdD5+Bd8caJYqCBHcyMHGl4s1KbsiP+N9WPiwxdZiLzNlbiylMOici1km rvKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=YHCnXa72; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t6-20020a62ea06000000b004faec001782si3396100pfh.232.2022.03.25.13.14.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 13:14:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=YHCnXa72; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 71BDC3D81B5; Fri, 25 Mar 2022 11:57:13 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229778AbiCYRkG (ORCPT + 99 others); Fri, 25 Mar 2022 13:40:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230096AbiCYRkD (ORCPT ); Fri, 25 Mar 2022 13:40:03 -0400 Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D821103D92 for ; Fri, 25 Mar 2022 10:38:18 -0700 (PDT) Received: by mail-lf1-f53.google.com with SMTP id t25so14524051lfg.7 for ; Fri, 25 Mar 2022 10:38:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ePGjuXY8EO300BC/e4D5JyF5EaxATMuVc7TnpwwcYEU=; b=YHCnXa72ZLr6yRIhfmI5bNfAobivYRAXL+moD2gJKv7xdzD5CC/WAujsbz5zmuUUzx QSSJh5ML9/Hjxx4wKvOFGKe1v7BxnrSscY6WTke84lCG+ydB5YIkE4TZAfxH4KSrdad7 qD3kLbi+RRATiEZ01j6SRznufrg8san05uhLI= 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; bh=ePGjuXY8EO300BC/e4D5JyF5EaxATMuVc7TnpwwcYEU=; b=yDm2V+ZAtrijQlrDhcjoKune7zN8188b9yIQjoO10rEUrsACLTo8CcEbo3mUM95xDl EmAmHLOcvpGZcUfJ5hO9eH/rl8RZKBMo167kgNJajtgzjx26wtSwoMvwqoDmELwgIeui UFeTNBcAtFgF5bFZx6oMIDXqXaQfr0Yx8uxiVHPMUqdrm1R28ZA7tbWzAlgz9pmfkHIw 4tn2RXcpDeRRv32obR/qeJnl3HgBAOdP0C3rW3YzxcRqpQ9XTcXiQP9XPMjnuzeImd7K 9dwk1pgjsjQoe7uX9yesqfwQRtKoIQkQWnmZS8Yuc2QgzPzXLEk534xgjemo+8KojyPR lCpQ== X-Gm-Message-State: AOAM5336+aTA4x7v5yPjwJizlLe97q9e3XljXnQxOZ+zOVKHj+LqtZWK 16LRvhaEgytvBl1Lb2vYl7QnDUNNscwOG6Mmxbs= X-Received: by 2002:a19:f24e:0:b0:449:f431:e774 with SMTP id d14-20020a19f24e000000b00449f431e774mr8643520lfk.189.1648229382486; Fri, 25 Mar 2022 10:29:42 -0700 (PDT) Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com. [209.85.167.45]) by smtp.gmail.com with ESMTPSA id m22-20020a197116000000b0044a0dbba162sm770854lfc.235.2022.03.25.10.29.38 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Mar 2022 10:29:39 -0700 (PDT) Received: by mail-lf1-f45.google.com with SMTP id z12so722569lfu.10 for ; Fri, 25 Mar 2022 10:29:38 -0700 (PDT) X-Received: by 2002:a05:6512:2296:b0:44a:6aaf:b330 with SMTP id f22-20020a056512229600b0044a6aafb330mr5516914lfu.531.1648229378049; Fri, 25 Mar 2022 10:29:38 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Linus Torvalds Date: Fri, 25 Mar 2022 10:29:21 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] locking changes for v5.18 To: Andy Shevchenko Cc: Borislav Petkov , Ingo Molnar , Linux Kernel Mailing List , Peter Zijlstra , Will Deacon , Waiman Long , Boqun Feng , Thomas Gleixner , Andrew Morton , Sebastian Andrzej Siewior Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 25, 2022 at 4:42 AM Andy Shevchenko wrote: > > What about old one? I have already complained in the early discussion that > `make W=1 ...` is broken by this change. So that is REALLY D*MN EASY TO FIX. If you use W=1, and don't want WERROR, then don't *do* that then. End of story. But that's on _you_. Not on the build system. If you use W=1 and WERROR together, you get exactly what you asked for. It might even be what you wanted, if you want to go through the warnings/errors as you encounter them, instead of building everything. And that's why I refuse to take the completely broken "strip out one or the other automatically" change. It's a perfectly valid combination to enable both. But more importantly, -Werror is more important than W=1. So if anything should be disabled, it's W=1. Side note: that would be trivial to just have in the Kconfig files if W=1 was just a config option. Do something like config EXTRA_ERRORS int "Add extra compiler errors" if EXPERT depends on !WERROR range 0-2 default 0 but note again: WERROR should be the thing that controls this and should be on by default, not the other way around. If you want EXTRA_ERRORS, you should not only be CONFIG_EXPERT, you should also have to manually disable WERROR that *normal* people should have on by default. Linus