Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp13786513rwl; Wed, 4 Jan 2023 13:06:11 -0800 (PST) X-Google-Smtp-Source: AMrXdXtt1zWgGuaRRo3B0VvWbhaow88H+0ByVSgQhv0zm8AY2WNE1nAv9+uvqcKKzgZIJA7Q0PS+ X-Received: by 2002:a05:6a20:4e1e:b0:9f:2dd1:c2bc with SMTP id gk30-20020a056a204e1e00b0009f2dd1c2bcmr54124496pzb.49.1672866370736; Wed, 04 Jan 2023 13:06:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672866370; cv=none; d=google.com; s=arc-20160816; b=ZQrezaW/b+4QEwnY4tgV5Nd6t9M1sBlMW/QN2VFoCER1Z/ouGumh1y+aZLVVPv2e24 bJs5xAcuMcDT0OMZmAeRD3nidjXsV/4KJNHAW5IjPl3ElM64v99//dhviRLqxyRQfyzd hyUB9sISvTvnsGYhAP64D20QEcKzHWDAMn5oP/lO8lKTa0ZZ/NXTiRZ+O5Z1EvqMmNZW 89G8O9OBA53ddFXymnP7bJ+kwOvFqGjWzEm+YAtvpCkgPoLBBAU9sKq3V1VDiMR1lMbF dHeGnbpjWT6rSMkdhqk1ovzS/RpHwjpaPVJt4nFt/VBjsvDM+HNXMRCw3XNEGIgYeUS9 NQcQ== 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=C0bMdoWKeCFjYfejvYkmS+qO/S9NQwdBaH83mEYfQ5E=; b=Cz19WLxqQ/HwflRefU0n3s7+MuXLzkS5YBzYJPXZXW0t+WsOE1AL3zZ+42QjoIg9Q1 f+Mb9rXm/3iwv+e60O4920muqyxkSwfzHy03O8D/F6kMZBedNw9QJNPy3bjbv8nEGDxX I0voaB20iVEiyRW0+BZonvdCfAwo9+YxIZgIREZiM8X4isi6+yDeHPB0OLRc/l8RlCiv 93nnt6IdhGf4xS92YkT3cnhtakSrk2dE88TifWqXuse8HW5fPq3N6hAgFMs8+MqF463k CZQbh717HeGrB6jcFHg8uDeX3mDoaOHoYaNZ2RC83EvAOEZWA/j7+t8L4bDotG8yLnb3 bYNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@engleder-embedded.com header.s=dkim11 header.b="p7ulw3/x"; 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 c11-20020a631c0b000000b00487c0222d24si34260192pgc.102.2023.01.04.13.06.00; Wed, 04 Jan 2023 13:06:10 -0800 (PST) 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=fail header.i=@engleder-embedded.com header.s=dkim11 header.b="p7ulw3/x"; 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 S240283AbjADUQn (ORCPT + 56 others); Wed, 4 Jan 2023 15:16:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240099AbjADUQT (ORCPT ); Wed, 4 Jan 2023 15:16:19 -0500 Received: from mx23lb.world4you.com (mx23lb.world4you.com [81.19.149.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 708BF4085E for ; Wed, 4 Jan 2023 12:15:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=engleder-embedded.com; s=dkim11; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=C0bMdoWKeCFjYfejvYkmS+qO/S9NQwdBaH83mEYfQ5E=; b=p7ulw3/xTwepHz53Ltul6SJRaz lGNjsG19kWzebYll0Fs4DAYlL/645nv44DJZx14JzsjlJ66dII/GlcD0ntImAV+6IXSnCa39TBC/0 LQfTIt6yppAy6IV7lV1GJ9azRZxDofMhj5V/08a/gKQy5KuzBRtVEusD4v6b4YxJIFyQ=; Received: from [88.117.53.17] (helo=hornet.engleder.at) by mx23lb.world4you.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pDAAf-0005Ib-8I; Wed, 04 Jan 2023 21:15:33 +0100 From: Gerhard Engleder To: linux-kernel@vger.kernel.org Cc: apw@canonical.com, joe@perches.com, dwaipayanray1@gmail.com, lukas.bulwahn@gmail.com, Gerhard Engleder Subject: [PATCH v2] checkpatch: Ignore ETHTOOL_LINK_MODE_ enum values Date: Wed, 4 Jan 2023 21:15:24 +0100 Message-Id: <20230104201524.28078-1-gerhard@engleder-embedded.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-AV-Do-Run: Yes X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 Since commit 4104a20646 enum values like ETHTOOL_LINK_MODE_Asym_Pause_BIT are ignored. But there are other enums like ETHTOOL_LINK_MODE_1000baseT_Full_BIT, which are not ignored because of the not matching '1000baseT' substring. Add regex to match all ETHTOOL_LINK_MODE enums. Signed-off-by: Gerhard Engleder --- scripts/checkpatch.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 78cc595b98ce..38659f22e54d 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -5783,6 +5783,8 @@ sub process { $var !~ /^(?:[A-Z]+_){1,5}[A-Z]{1,3}[a-z]/ && #Ignore Page variants $var !~ /^(?:Clear|Set|TestClear|TestSet|)Page[A-Z]/ && +#Ignore ETHTOOL_LINK_MODE_ variants + $var !~ /^ETHTOOL_LINK_MODE_/ && #Ignore SI style variants like nS, mV and dB #(ie: max_uV, regulator_min_uA_show, RANGE_mA_VALUE) $var !~ /^(?:[a-z0-9_]*|[A-Z0-9_]*)?_?[a-z][A-Z](?:_[a-z0-9_]+|_[A-Z0-9_]+)?$/ && -- 2.30.2