Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp477764rdg; Tue, 10 Oct 2023 16:47:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFdccy+/pdbZXCH8GWNnKcs0/Reiz4dvG2BRnpK0RLLVSOwn5Bp+BkyF79XrTlCwOacbqn1 X-Received: by 2002:a9d:68ce:0:b0:6bc:f5b7:77e0 with SMTP id i14-20020a9d68ce000000b006bcf5b777e0mr22278020oto.31.1696981636679; Tue, 10 Oct 2023 16:47:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696981636; cv=none; d=google.com; s=arc-20160816; b=NZVRU9HStOkS9teTb9/lINWd/4DEts/tEq5+8U6q7+1Vppod1v5vKalSh0ty8PIibd WBmQ1LMe/PiCKDf3cl4APKKrh0dTaCsDQo9RQ6xELK85s7hQuoQAAWOxlUTPLxVoRH/Q QerHM6M9ZtNXLE6knbbmsJQa6QykMLxItCX6W5RTn4nKvK3RPcpB5lcJcaeb7NSpqbSX tQkaE7E5xLkEaRjLPxib6n0mBLYPEBuw/jkc53hDFguBzsycNovFp8twhalzP6Bqb566 Bs7jxfI0Jrwd4Wm9cwBRMPsU9UkmiBJHSDl0CaisHzfEkVKtAnDjNjKh66jx4czhq1aM BNqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=5FmO3Xs5F7J7ASiRfJaJgxvmEtofMuf8cd3H6Jj8Oxc=; fh=zwZBo+PtOT7DikHLKOgdrvxttBr5jAmZRZNWpcWUSJg=; b=qPDMrc8OwUUeDAhlTUnSBIgV2kL6HeeVPKdEHtsT4hNIP2eddUO79HVYfYCfh0GENO 6b/T+/ZyqCuyStVYQWroKvsjWLCokEaLYTokTTt7+bi7qNAHMZyT6PFFm9aHTIltfdar e6rCdBnRbcywR7CnXKV2Gf3sWnxnGVjGSyB672FxhmqgqERiZ7UPAPnFReSee5rDfg1M PwFJYO7yPHWuSe4jNQIqysxA0CT0nX2txUn33ktIVVlcFY48FsQnCnSPU4/c5ur36veq iIhGMGRGbXLvcNHTTb8osHXwfA3m5+MN8RwMp0fXYvve/AoLjOFQ0S2iU35Y0HngMzvd xpow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=sw830k0P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id s63-20020a632c42000000b00578d71884b4si12671871pgs.194.2023.10.10.16.47.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 16:47:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=sw830k0P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 38CB480CFD5D; Tue, 10 Oct 2023 16:47:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344206AbjJJXq4 (ORCPT + 99 others); Tue, 10 Oct 2023 19:46:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229513AbjJJXqy (ORCPT ); Tue, 10 Oct 2023 19:46:54 -0400 Received: from mail-pg1-x549.google.com (mail-pg1-x549.google.com [IPv6:2607:f8b0:4864:20::549]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0DC4A7 for ; Tue, 10 Oct 2023 16:46:52 -0700 (PDT) Received: by mail-pg1-x549.google.com with SMTP id 41be03b00d2f7-59a1c81979eso1631589a12.3 for ; Tue, 10 Oct 2023 16:46:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1696981612; x=1697586412; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=5FmO3Xs5F7J7ASiRfJaJgxvmEtofMuf8cd3H6Jj8Oxc=; b=sw830k0PL3NMYXRUkHKbfE/Z2t1LjO27Wf0iFri2H5m5fuSKAPh4vXHBjbx1PNzKf+ KbuhM7Q3ehefFVTpfxhyjWSjQe9U/B7Hep6jVlWAIjIxlMbYE8vZN+cpmJBlvQRDwZjs KTpn+KLaz+fJXjs+dUtU/s61qRqDODT+Ldi2GLj6sSchi4Zky6YoLgtn28sPeRPFFTRb sIXyY8cOujCColNNZmgAqQOt5QKT4Jwp4nzjLVILDOOxd9yNGohjJOdDb1YsBP6MXRYQ DJoAXKDMfXGlKbnI+6XgRiUBTMxAzHC5wMYFld1RuIs/mTEA5CiQtf+E5luV+SWKIgum dJbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696981612; x=1697586412; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5FmO3Xs5F7J7ASiRfJaJgxvmEtofMuf8cd3H6Jj8Oxc=; b=iE2u2TVy3dDHvZ/vFczsynumiqtwiY0ymNomc1NeerQuy+Umq0rT48k/XJSIbLo6LR Cxi8tmeotT2hq0aHBmcEnQ/3aCnGl9aFS8oIw80wlwHh+uuu62Y7ZhxjKj/EgpCgxDT8 CC/bmmUMRvK0+c8Y8xoXfo9vXovKhrI95aSzLhFpgkk5HtSJYcAHV0UCBssECbR0eKDY xNyL4lskAn9Ho3ZK0ThKGS2q3eqir61pLzvA1eC+qrw2ETgA7KtS3F5lxyVuKJzX9aaG GOvwznlo0ZxqHfPyc/MoH/UR4ATSuDOB5pBlmcDbFc1MbQtulSp/mE98/sFMNLnaMNTu d8Zg== X-Gm-Message-State: AOJu0Yz48nNc1+zZCebRjrkIuGqY6DLQEQ0BlUOzYJkwSZEhKNtbarvP B9N/MjTQCvcV4IO6yTW26dsSE+aKx08= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a63:2955:0:b0:578:eaab:6770 with SMTP id bu21-20020a632955000000b00578eaab6770mr313470pgb.0.1696981612064; Tue, 10 Oct 2023 16:46:52 -0700 (PDT) Date: Tue, 10 Oct 2023 16:46:50 -0700 In-Reply-To: <20231010072359.0df918e9@kernel.org> Mime-Version: 1.0 References: <20231006205415.3501535-1-kuba@kernel.org> <20231009110613.2405ff47@kernel.org> <20231009144944.17c8eba3@kernel.org> <87sf6i6gzh.fsf@intel.com> <20231010072359.0df918e9@kernel.org> Message-ID: Subject: Re: [PATCH] KVM: deprecate KVM_WERROR in favor of general WERROR From: Sean Christopherson To: Jakub Kicinski Cc: Jani Nikula , Linus Torvalds , pbonzini@redhat.com, workflows@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-4.8 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 10 Oct 2023 16:47:14 -0700 (PDT) On Tue, Oct 10, 2023, Jakub Kicinski wrote: > On Tue, 10 Oct 2023 11:04:18 +0300 Jani Nikula wrote: > > > If you do invest in build testing automation, why can't your automation > > > count warnings rather than depend on WERROR? I don't understand. > > > > Because having both CI and the subsystem/driver developers enable a > > local WERROR actually works in keeping the subsystem/driver clean of > > warnings. > > > > For i915, we also enable W=1 warnings and kernel-doc -Werror with it, > > keeping all of them warning clean. I don't much appreciate calling that > > anti-social. > > Anti-social is not the right word, that's fair. > > Werror makes your life easier while increasing the blast radius > of your mistakes. So you're trading off your convenience for risk > of breakage to others. Note that you can fix issues locally very > quickly and move on. Others have to wait to get your patches thru > Linus. > > > >> I disagree. WERROR simply doesn't provide the same coverage. E.g. it can't be > > >> enabled for i386 without tuning FRAME_WARN, which (a) won't be at all obvious to > > >> the average contributor and (b) increasing FRAME_WARN effectively reduces the > > >> test coverage of KVM i386. > > >> > > >> For KVM x86, I want the rules for contributing to be clearly documented, and as > > >> simple as possible. I don't see a sane way to achieve that with WERROR=y. > > > > The DRM_I915_WERROR config depends on EXPERT and !COMPILE_TEST, and to > > my knowledge this has never caused issues outside of i915 developers and > > CI. > > Ack, I think you do it right. I was trying to establish a precedent > so that we can delete these as soon as they cause an issue, not sooner. So isn't the underlying problem simply that KVM_WERROR is enabled by default for some configurations? If that's the case, then my proposal to make KVM_WERROR always off by default, and "depends on KVM && EXPERT && !KASAN", would make this go away, no?