Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3034887rwd; Wed, 14 Jun 2023 10:16:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7exOAuvbAVV30muCWK5g+OsSf3vKANDKR84Ub2ATyqCpvGJEw8TS2K9s7LaLfrk6HZbHdL X-Received: by 2002:a05:6808:23cf:b0:39c:798e:6d14 with SMTP id bq15-20020a05680823cf00b0039c798e6d14mr13408009oib.10.1686763006107; Wed, 14 Jun 2023 10:16:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686763006; cv=none; d=google.com; s=arc-20160816; b=BjFGmGJx+jEeyOsVyGvfA4eDw7xv/sXjel47Ju7Qo0AqV8TyINnRzNGI9iM5jtq8GD ZYpFNvaAl2FwACwi7GgxGiwvjCiT2rmm6mf7erE4sgd5z3gWZAez1NQtZQZZiV8RV0IR ZkwLNDqs3nNjNvKZ8hZMr1Se/BTacJJJEG1UEwwYDjYkc39wkAYMzf6G+uAmhnZMj13l IfSOBx7cTSODnTaN68SXbSyf3hMVv6wCZjogBKpZUB+UStOr/sDqBMvJGpIRY/4bLKuH Bu3yU4wrlhwLilIdo5e9xofIiy09tWQutI4+lVabr1sMSQhXi098Vo9VzThctnbR0WQ7 Ay7Q== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=UxcM7NpXr6t+M2BdppbpQN6Hj0VbzPddIcGvGsz0FiM=; b=ATvPTx+vlU7LnNLsFQYOEdG9iT10VQyYKIhBKFj/JWS0HV5hmvUnzopHddO5rZKR1M 6Ug83d1XbBQ9G9RdGW8FJ5f8Lvo0Qex2nro1FNaxCKoL/cjtpUAWDToAEP1h4VvFZmTv JKGbBer4kFY3REdqCEAV5sLnephXY86G2pmDv91uaIuJadPs8w1vrQEJj9TCAYv12qaq iHHI+l6LcnXysfMusNEhAQlKxlcT+jZsUqITsNRsHmSGECtSolK8BhpOiCAsjs9NdjmA eoMWmRUNrZnoeoCwdsnQvNh7gGkFMqV5Rrt414ofFYUspLrCnQ7ShkGLfgPKYJt7D4Es YaXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=U5dC4OAO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x30-20020a63b21e000000b005307ce6fd00si11735776pge.389.2023.06.14.10.16.34; Wed, 14 Jun 2023 10:16:46 -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; dkim=pass header.i=@intel.com header.s=Intel header.b=U5dC4OAO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236192AbjFNQuM (ORCPT + 99 others); Wed, 14 Jun 2023 12:50:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236096AbjFNQuJ (ORCPT ); Wed, 14 Jun 2023 12:50:09 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22DA91FC2 for ; Wed, 14 Jun 2023 09:50:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686761408; x=1718297408; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=lF5f5n/e4aXoP+GMV3/7WyCPHfb2ROWwQeBKvgiW28A=; b=U5dC4OAOTeM39IdmVazv3LeGrjjN4r78euxwNqjmMhvN7SBZHL28ANYG ACBGLFfwJANEVyBLGA0L8+MAmHCrOUtNQChKjFrVxEy2PaI7DN5sXnKU2 5Z0CkrkjVylMutm2exG5glRilZW4rfy8ZwawBx/sXkKcGHyzmeV+r+Gmy HRzkMJBgkVr4rpLD7dgg9zY4xG2lwpf73kjs5lpb6RZxSh/aw2fJwWbmU Qwx0OPlHVuCiyunwFWsVvqm+segDB+ZIVv47VShi6oJrxOWHnLGUwZlBM 4u0r2sbXn1yKNUovtR+6H+FxTLL4QhMPWWYlLNE8Eeb63JbskXSZGi9bZ Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10741"; a="338304238" X-IronPort-AV: E=Sophos;i="6.00,243,1681196400"; d="scan'208";a="338304238" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2023 09:50:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10741"; a="782162198" X-IronPort-AV: E=Sophos;i="6.00,243,1681196400"; d="scan'208";a="782162198" Received: from awvttdev-05.aw.intel.com ([10.228.212.156]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2023 09:50:04 -0700 From: "Michael J. Ruhl" To: linux-kernel@vger.kernel.org, apw@canonical.com, joe@perches.com, dwaipayanray1@gmail.com, lukas.bulwahn@gmail.com, corbet@lwn.net, david@redhat.com Cc: "Michael J. Ruhl" Subject: [PATCH] checkpatch: Include GEM_BUG_xxx variant in the excluded check list Date: Wed, 14 Jun 2023 12:49:55 -0400 Message-Id: <20230614164955.1319870-1-michael.j.ruhl@intel.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 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") 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", -- 2.39.2