From patchwork Tue Oct 24 11:17:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Ellerman X-Patchwork-Id: 157388 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1865810vqx; Tue, 24 Oct 2023 04:17:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG5S949JAcU89mjMr42McnIJZuOIq/SwgzMX6E5yGm8DhTDNPWPtTCdc/Zzu1b321qwMJqi X-Received: by 2002:a05:6e02:12e7:b0:357:9d63:cab9 with SMTP id l7-20020a056e0212e700b003579d63cab9mr15056635iln.14.1698146266355; Tue, 24 Oct 2023 04:17:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698146266; cv=none; d=google.com; s=arc-20160816; b=YeloWbSYP/cEgG3X5X6YQPzrS93WBdoLSvrJw39Hu5IJFxQlM/CuAQxXJNWvC/ib2i b9O20bWLOrqfU0vnmQzoeT47dZNBKeKx7LnVVW8Ee8Il77miKzNXIRtVipZ2dPpvgpFO kZj2oc4KbNrm/WIc9ApKDT7xGHKHReZQ79hZGgo78NBow/cR1/jTfyToAvVNgtoawu7E yeygjvNcjT4nVdKC/cIXNEUWpI2bTLIJPqy6xYCtY0LIFXaLgf/Zp3l+TuHKYbt1Wzm6 POyH+2TSj1lILT4tEDWQWMrNfEE1OtGbq+fThYqwsazXAC63q105UD/Wtpz4a5GsF5SJ nQog== 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=YtEPfVNWasWImZJIQeh70OjS+3z95AdF8BbO4YBvGL8=; fh=N+ZdZNDgQpEp5EiBjoYnUyPi/mmEK+nvdMHoOhASASg=; b=Fb3aHuHoC/oj2Oic/1Qf+ZyTSQ/d8GanYGIYirw7EeONWvNGjrInXob4JbJGvWY4EE f8z5+loI8nsVnP//vv+ONX2A4C2PsxdF1OeYyYJOz8jYk04M6M9rNpo3JbtCr6mS/sh1 t8TtAa2sRbKgPhy8YQefyN5f8KY0QN7J7tsK5yukyNUKYEBEyqjxcr3vSK4d20VFZrqI hESTauMuBnVck5l7UArpGg2BdVuBQpXd6s43PmHMV0GvfwW0l00iLTrpNkaLXbgKMDEe wwiutlfYQQxTwO0fqLrc/rCxBorofArFzqu7kBlJVZfo4nXT8M24gFVaM+4k4Sxivcl4 9z9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=gPkplYqQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id k14-20020a056a00134e00b006be01b51af8si8529341pfu.33.2023.10.24.04.17.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 04:17:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=gPkplYqQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id E41D680AD0BB; Tue, 24 Oct 2023 04:17:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229677AbjJXLRf (ORCPT + 26 others); Tue, 24 Oct 2023 07:17:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbjJXLRd (ORCPT ); Tue, 24 Oct 2023 07:17:33 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC2D5FE for ; Tue, 24 Oct 2023 04:17:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1698146247; bh=YtEPfVNWasWImZJIQeh70OjS+3z95AdF8BbO4YBvGL8=; h=From:To:Cc:Subject:Date:From; b=gPkplYqQJvMlVgxNmd3FMHKjMxawBfRqNT6kO+SeM40vQf7CPQhLcmfE5Js55bpeO yPavOktkxw4o7eSuSqu5DK5gKNEqhgy2MCNNb6rajOh7xkngkG7Mn/umAGdHaY+TG4 1DMbVdetjAwlAyZ6sFJTDrpkbO5escGNHx414yuyAIbGIRiHDAlBUPpjmt5H3xuU3j Jkbl/Mzgqi3jJzarmAs2/F3RbI4xrpzv80Z7S6w/drJMbVNEJjQuDlQphJpzrcS/TX Z1QmH/rF4qYwBxyzDVik0cuwEthit+SYwm/W2gOSRjDuzhgDjgb411MHOcEw9U4tFn yEsHVj+pFZ6oA== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4SF8fb3zrCz4x3D; Tue, 24 Oct 2023 22:17:27 +1100 (AEDT) From: Michael Ellerman To: Cc: , apw@canonical.com, joe@perches.com, dwaipayanray1@gmail.com, lukas.bulwahn@gmail.com Subject: [PATCH] checkpatch: Recognise "Debugged-by" tags Date: Tue, 24 Oct 2023 22:17:14 +1100 Message-ID: <20231024111714.1814510-1-mpe@ellerman.id.au> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.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 (howler.vger.email [0.0.0.0]); Tue, 24 Oct 2023 04:17:44 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780635419411798405 X-GMAIL-MSGID: 1780635419411798405 Currently checkpatch complains about "Debugged-by:" tags: WARNING: Non-standard signature: Debugged-by: #33: Debugged-by: Jane Doe There are over 150 Debugged-by tags already in the history, so checkpatch should allow them. Additionally checkpatch will now catch small typos, eg: WARNING: Non-standard signature: 'Debuged-by:' - perhaps 'Debugged-by:'? #17: Debuged-by: Jane Doe Signed-off-by: Michael Ellerman --- scripts/checkpatch.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 7d16f863edf1..31774351bae1 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -618,6 +618,7 @@ our $signature_tags = qr{(?xi: Reviewed-by:| Reported-by:| Suggested-by:| + Debugged-by:| To:| Cc: )}; @@ -711,7 +712,7 @@ sub find_standard_signature { my ($sign_off) = @_; my @standard_signature_tags = ( 'Signed-off-by:', 'Co-developed-by:', 'Acked-by:', 'Tested-by:', - 'Reviewed-by:', 'Reported-by:', 'Suggested-by:' + 'Reviewed-by:', 'Reported-by:', 'Suggested-by:', 'Debugged-by:' ); foreach my $signature (@standard_signature_tags) { return $signature if (get_edit_distance($sign_off, $signature) <= 2);