Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp176967rdg; Tue, 10 Oct 2023 07:24:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFmbwL7K8F7b3KFcnb3ErKMbgjbOareVGWyaDiXwqucpH5XYLjpoAey7sickT0/29OtLGkX X-Received: by 2002:a9d:6c85:0:b0:6c6:19a6:29bf with SMTP id c5-20020a9d6c85000000b006c619a629bfmr20201606otr.7.1696947856979; Tue, 10 Oct 2023 07:24:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696947856; cv=none; d=google.com; s=arc-20160816; b=GG53axV4d9PO7QhLXjQol5ohkuH4Wapr8UA34/0gi/JFQL8W/orZ8aVhLSLlbNqbP6 p0JEDP/ptZzgE1qnU8zPZErsl83XhdjsLwUd5dJ22nrxl+/gs4Nxn0g6qdsyIGsjfEh4 m0Sx0LsWSiWyileXM58fxX0hAchrZ2nuQP6wOi2/RxipWt+P9av7P/+k7nbvluxi9pwF 4AEfJ2s2TQzu6GTOInkF6NIJ/clvBzGl3GOgpBZO12EdHf+BAfyAHqlKxeJbGJ5UQEkK kAyzD5SA9AhH88XjFwF5JVafq4LNkcQMCl2TYCW0DOpwdN8mka+miFYf+19swzBm8q1I BLzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=BLjJnB2nbXv4GfTO1eUjZJDWyRXR2HjPWElHd+/dIec=; fh=j5AMWy8RyxV1vj9kA9GiEj6vHwgNo5te7ddMcv+4ZQM=; b=lMQvoRvyBLm/Yj4tgM0u6Z87S5cub4T6D7EoCXPml+WKrugNL2nY9cYOPO99QrhNx5 zdLEOyKVOl1GPiLKInftpbMcspW9lQWTx2pHMNWpnIl6lFrAcO4LIGvv9eApiiJTSPfP KdLRcAKaHPS8WowajzKPzHuS7I4AghFDki2mQkPqgCZAVKcq804b6fAPl38R9KfTj9cL YgLo4zflLiY1wEpy7sDzsX8TVRyaSuL6e8J/8G4LMzXg3XDEbQso36REFhTmJBM7BztM aTi4cOSOtA/NbUgn7xMPg59NqRu37/WwcGtpQ/n6ncVuvRiCZHa06TWZAc60hppd4UFr 00Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h7vEvRZN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id d22-20020a63ed16000000b005859c29ce86si11905686pgi.84.2023.10.10.07.24.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 07:24:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h7vEvRZN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 04F4B811340A; Tue, 10 Oct 2023 07:24:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232993AbjJJOYD (ORCPT + 99 others); Tue, 10 Oct 2023 10:24:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232779AbjJJOYC (ORCPT ); Tue, 10 Oct 2023 10:24:02 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41525A7; Tue, 10 Oct 2023 07:24:01 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 97E7DC433C8; Tue, 10 Oct 2023 14:24:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696947840; bh=ZMkjwEVkqqs+rA35d7AnsBp3tNIb0CuxBAEu1zdtero=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=h7vEvRZNjKQNq244pxQdZZ51LKeXR79TuHRXtPOjfQ3ZTPLk/aCkJ26X2WfdzabN9 0krYwIEia9K0kLBExdGldfV/dy8Gft7TdWb1RyicsloYaV6HZ+xnDvbB8ALF9wuZDW iThwNFusIGObGwsCoH08hjwMeCK7927BiZSphxj8EN6w/p2bYMPXjHFLyzELfZjfGk KAjYodr1QNK61eZqNgXmHgJAXsLg6Sd1y1pkVrho6+R+3VI6G/DcnHk0GVb1Vf/2kQ ZulTAmhMA6mmVirU5yUxu2QTkZlc2qwjPiZwfyzeRxubsGweEPnqz1dC1EtRNmRseP krSkI1O1wPLhQ== Date: Tue, 10 Oct 2023 07:23:59 -0700 From: Jakub Kicinski To: Jani Nikula Cc: Sean Christopherson , Linus Torvalds , pbonzini@redhat.com, workflows@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH] KVM: deprecate KVM_WERROR in favor of general WERROR Message-ID: <20231010072359.0df918e9@kernel.org> In-Reply-To: <87sf6i6gzh.fsf@intel.com> References: <20231006205415.3501535-1-kuba@kernel.org> <20231009110613.2405ff47@kernel.org> <20231009144944.17c8eba3@kernel.org> <87sf6i6gzh.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Tue, 10 Oct 2023 07:24:15 -0700 (PDT) X-Spam-Level: ** 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. Whatever tho, there's no accounting for taste.