Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp442063rwd; Wed, 14 Jun 2023 19:05:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ42IigpC9rasSyGZ/q1BEuJioN4jDndEfJY4EWyM7A8jXebFoGFjeR8CWvbuiLyhH7/v9lc X-Received: by 2002:a17:907:60ce:b0:982:487c:7508 with SMTP id hv14-20020a17090760ce00b00982487c7508mr4431221ejc.38.1686794716498; Wed, 14 Jun 2023 19:05:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686794716; cv=none; d=google.com; s=arc-20160816; b=TuTu9eyrD4n55aq00iDnUCAO2VdJ7LNpTxtK/lI/ZyREj3d2TyppB0Qh9QB5PZezh5 TpKfjbVPqz+d2NM5KMmMfR+7eDF+Cp6d7U85t/FaD3OmxvClf1FmQ3oDX1OxLG4VgWib ZGlQNBGAbpCgZgM3AeUsnSemsRG8RwPGjF6C7ndWo30V84+1LaJJlk0v8pGHsMM/+v8x rXkqS3w3QBFtKUtBqhgGrRy5LhTeUGhVQmRGAUHnbw2dvY1Zmg+JrFQRoHk7Hwh/omWm Yf8TopSkf3jM5VcuxDlS38q7mcjpwlAO78ZEKL6j98JqK9cgoL6dfazZeh9IdWlnQlr4 QZfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:to:from :subject:message-id; bh=eG2I1rKj8bvMhSQbOqAai1yy/5ffQw6K3hBGiX0MVXE=; b=fhu19h1F44QheZDLp5qVljFd//ihhQ6qlr9MB/yLCr6F8HgV1YW6Gx0WtJctnQkI0x 2trRy6rDy1NITu4z7MUM4pSok0+X0NDH2nLFoeMytSNvcS/VgMN/Tek+E+QlhUoVsdkJ WLprCwPMxrwuzUWjNtPF0VqeOVPq2SwT+PBv0Um7Irmhe6yNRkITTNmBBhGxkoIBxoMb E31DerD+4pnZHboOO5LqQWSYy2A3Q14d76g9nrTmo9Vlb9xMB6Es6ZyYvM3eFBFsLeFV w/sV6+5Gc71d9OEGHWOA/NhkTrkdYQMa3WJ2SEXE0iecUnz/V67PW2XJjp8/NzeY3dXG qZhQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t24-20020a170906179800b0098274350d31si1375120eje.126.2023.06.14.19.04.42; Wed, 14 Jun 2023 19:05:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238081AbjFOBrg convert rfc822-to-8bit (ORCPT + 99 others); Wed, 14 Jun 2023 21:47:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236671AbjFOBrf (ORCPT ); Wed, 14 Jun 2023 21:47:35 -0400 Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9F46EB for ; Wed, 14 Jun 2023 18:47:33 -0700 (PDT) Received: from omf05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 2B4BD16088B; Thu, 15 Jun 2023 01:47:32 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf05.hostedemail.com (Postfix) with ESMTPA id CBC4B2000D; Thu, 15 Jun 2023 01:47:28 +0000 (UTC) Message-ID: Subject: Re: [PATCH] checkpatch: Include GEM_BUG_xxx variant in the excluded check list From: Joe Perches To: "Michael J. Ruhl" , linux-kernel@vger.kernel.org, apw@canonical.com, dwaipayanray1@gmail.com, lukas.bulwahn@gmail.com, corbet@lwn.net, david@redhat.com Date: Wed, 14 Jun 2023 18:47:26 -0700 In-Reply-To: <20230614164955.1319870-1-michael.j.ruhl@intel.com> References: <20230614164955.1319870-1-michael.j.ruhl@intel.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.48.3 (3.48.3-1.fc38) MIME-Version: 1.0 X-Rspamd-Queue-Id: CBC4B2000D X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Rspamd-Server: rspamout06 X-Stat-Signature: b9uxyspq5n5sdmbcbspta5sfxr4ynmwg X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX18XIq4JwacEh1PSc0XItlP0ZZP1B5154U0= X-HE-Tag: 1686793648-32441 X-HE-Meta: U2FsdGVkX1/Hy1a/Dfgib0iq6BaNK0VsCAoZhNH82HXYafPFwpdcUr/mru/9ndGhVJgC2argvhq8Up/Vba1KIlbt+B/O3Ae1vSQ6rdnDmGPH8jwQKuN9M43VfqTm/D4SiCMrwu+5SWN+nBB+tBcp1SZK2veU+KN7lHto29tIuWJWpHf7niZpYd0cECKw4SdzYA/rDHyMNWcxZ42S1DthLYfreIunjO4iS+w6f+fKSkNa06q1XCZLUtnafJJHkEovhjG/bqqyqmmtMHx9ZWKkIBXxyy1j4eXc/jvPeJ5OAGzRqazP/1wU6ogbGvKs15q2jeOdmwpvOPd6aaUfkbjlyDrH+HXhW5S3 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 Wed, 2023-06-14 at 12:49 -0400, Michael J. Ruhl wrote: > GEM_BUG_ON is usually compiled as WARN. You have to change to > debug configuration to get this to be BUG. > > checkpatch flags this a WARN level issue. > > Since this is a i915 local debug macro, allow its use in checkpatch.pl. > > Fixes: 69d517e6e210 ("checkpatch: warn on usage of VM_BUG_ON() and other BUG variants") Not a "Fixes", just an additional check > > Signed-off-by: Michael J. Ruhl > --- > scripts/checkpatch.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > index b30114d637c4..d3ddde4cd63e 100755 > --- a/scripts/checkpatch.pl > +++ b/scripts/checkpatch.pl > @@ -4821,7 +4821,7 @@ sub process { > } > > # do not use BUG() or variants > - if ($line =~ /\b(?!AA_|BUILD_|DCCP_|IDA_|KVM_|RWLOCK_|snd_|SPIN_)(?:[a-zA-Z_]*_)?BUG(?:_ON)?(?:_[A-Z_]+)?\s*\(/) { > + if ($line =~ /\b(?!AA_|BUILD_|DCCP_|GEM_|IDA_|KVM_|RWLOCK_|snd_|SPIN_)(?:[a-zA-Z_]*_)?BUG(?:_ON)?(?:_[A-Z_]+)?\s*\(/) { > my $msg_level = \&WARN; > $msg_level = \&CHK if ($file); > &{$msg_level}("AVOID_BUG",