Message ID | 20230314-doc-checkpatch-closes-tag-v3-3-d1bdcf31c71c@tessares.net |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp47669vqo; Thu, 30 Mar 2023 11:17:41 -0700 (PDT) X-Google-Smtp-Source: AK7set+Ciqu0jgFpCyzzNKqFibGvTQMfPAlQtfIsTR6a/d4ABctf4vJORiX1n/U1fSEadW9VVx3V X-Received: by 2002:a05:6a20:29a0:b0:d9:e45d:95cd with SMTP id f32-20020a056a2029a000b000d9e45d95cdmr19685579pzh.17.1680200261440; Thu, 30 Mar 2023 11:17:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680200261; cv=none; d=google.com; s=arc-20160816; b=HEXmr9GxGpXNnJCgAbLx1Mnd7igjen6eWUvUUtJL+yMJdqy2sYQs/lD1EfF/9E45Oc W3TEuGdqGZUdWcGrNgUzH8gDIUuha/7Pe/50Orxxr/Ef8oUhqJXI+c/xuwBIaak8U+// xw7pwSVGtaZ31RRhGC3xX/mx3hWMo64sdoNznbegzuDMmzsuD8XCyNsCvY5bIQpWtCiI W1XsPSy+slbmjgLuajp4ZKygC0/gWggAh/dDiqaqchSPVmncHjS2lPC/SUlc+qrXajhS mLF4rmH0PIxD5IR1h6Yl23UHWc+fED8bL039ccpjPN41nSnoPxeol39w/KJYFIl89YWo DJ5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=kWvu93s3B9VjmqDMiiXdedDGk5MrX3CFDculOGxbOWA=; b=hGRBBbO9vOZYptLPZysEVB8/1IOYwgHEhsc33s2EUsRfZ2VH0sKGnOjfbk9XxLBBJH 3uuTMGDheWmLYgIEBNJhW8dmkFQsD4j2qDRQxDJt69YDm+ecnfxK644ZgTIG/cuj0Btp NYn2LRTiv/fPk6ZIcj+3+zIaDcT5WJAHc9PWzqIOdR/a9iH4vEkSSLGOZwofhprzR1vU hJZvVQkQItu23yoYmp9o+1fLTWXHuRjuQYFjkHfr0KsdDrXKqWhes7i2hgHBUHHCBhw/ 4wFA1yQsUjzw+ur5hduSN7Vi7I4/edKG4mrbQYLgZbU0Zx+zSPL3aADsOZkt2xlBtTUN 0wfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tessares.net header.s=google header.b=sli5Zcnh; 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=REJECT sp=REJECT dis=NONE) header.from=tessares.net Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j6-20020a625506000000b005a8c65d57a0si337795pfb.257.2023.03.30.11.17.26; Thu, 30 Mar 2023 11:17:41 -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=@tessares.net header.s=google header.b=sli5Zcnh; 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=REJECT sp=REJECT dis=NONE) header.from=tessares.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229734AbjC3SOA (ORCPT <rfc822;rua109.linux@gmail.com> + 99 others); Thu, 30 Mar 2023 14:14:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229916AbjC3SNt (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 30 Mar 2023 14:13:49 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D000D516 for <linux-kernel@vger.kernel.org>; Thu, 30 Mar 2023 11:13:48 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id y14so20003009wrq.4 for <linux-kernel@vger.kernel.org>; Thu, 30 Mar 2023 11:13:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tessares.net; s=google; t=1680200027; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=kWvu93s3B9VjmqDMiiXdedDGk5MrX3CFDculOGxbOWA=; b=sli5Zcnh9i3zNFg0OD4NJPjzj5UPngZ7yeiqMMUves6L/8ZJDHVNC3ONaZ0AIC5yTQ QPj6iYADmhwpApfEAzvdNjYd2EusisdpRaAUcu59P0Hmt6hV76sU2XaBlk9e/ZQqDa3o 9Blb/mtUqXj12HRbpXYfuM9xIjrpZP8IcSjfV1pAcqGNjBTp5jxqJdU2R8MdycMnWRY7 tH+KHrdlazlSAzTx2p2hgMOAOFMAZJIxesKhkQpBqmZx5kB380/W2iFcH1EFauzVNA98 wxewA9SGDs0AxubFXATsh0YzLUsHTtS08CB3oq4pTm/vPZLaoGMM6ASZV/utCcpaYZkP i9Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680200027; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kWvu93s3B9VjmqDMiiXdedDGk5MrX3CFDculOGxbOWA=; b=4jBh90xLCJCx/GZYAZewaMBBj48uJcsNazdfqaGrLkhv06/1iNHp41Al7ISiaT3MLC 89yfuOM2rY4arqyZnZTXaicVF+ugSe5SKfeJGAQBVtvuGJQSHO8/vzny9iMSozAxyQK5 6k4rKFJNCQfQrgjQPCGLxX9TQJaqXpY3epu4NwZ+25kNEaN3FrCAazKYd/9LGgkn53Jq GCWyHZFAMQLoiFGdPv8YWMI7kHbSeoH6Ra3LwmxMuEMchsNA79W3E3vNhNQ47hekBtt0 n5NnweN3s07HzWDb5VTnTOmBs+a2QR1ct2RiowfJGJVV7iBVbYJFGLT5xu8zn4b+f3dr qrsg== X-Gm-Message-State: AAQBX9cCPfwZ7VDSA69cFPV69Z8A6LK7i6qD30XGy4L2zeHVfGSS03BF np/kU27AizMdkF8KSyEM9t2shg== X-Received: by 2002:adf:fc8e:0:b0:2d5:39d:514f with SMTP id g14-20020adffc8e000000b002d5039d514fmr19572798wrr.65.1680200027085; Thu, 30 Mar 2023 11:13:47 -0700 (PDT) Received: from vdi08.nix.tessares.net (static.219.156.76.144.clients.your-server.de. [144.76.156.219]) by smtp.gmail.com with ESMTPSA id e18-20020a056000121200b002d24a188b64sm33459741wrx.112.2023.03.30.11.13.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Mar 2023 11:13:46 -0700 (PDT) From: Matthieu Baerts <matthieu.baerts@tessares.net> Date: Thu, 30 Mar 2023 20:13:25 +0200 Subject: [PATCH v3 3/4] checkpatch: allow Closes tags with links MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230314-doc-checkpatch-closes-tag-v3-3-d1bdcf31c71c@tessares.net> References: <20230314-doc-checkpatch-closes-tag-v3-0-d1bdcf31c71c@tessares.net> In-Reply-To: <20230314-doc-checkpatch-closes-tag-v3-0-d1bdcf31c71c@tessares.net> To: Jonathan Corbet <corbet@lwn.net>, Andy Whitcroft <apw@canonical.com>, Joe Perches <joe@perches.com>, Dwaipayan Ray <dwaipayanray1@gmail.com>, Lukas Bulwahn <lukas.bulwahn@gmail.com>, =?utf-8?q?Kai_Wasserb=C3=A4ch?= <kai@dev.carbon-project.org>, Thorsten Leemhuis <linux@leemhuis.info>, Andrew Morton <akpm@linux-foundation.org>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Konstantin Ryabitsev <konstantin@linuxfoundation.org>, Bagas Sanjaya <bagasdotme@gmail.com>, Linus Torvalds <torvalds@linux-foundation.org> Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, mptcp@lists.linux.dev, Matthieu Baerts <matthieu.baerts@tessares.net> X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1288; i=matthieu.baerts@tessares.net; h=from:subject:message-id; bh=D3yoDenjNEV/KCtG0U0EPfT8PJhrudmfXIcKaZcGmXw=; b=owEBbQKS/ZANAwAIAfa3gk9CaaBzAcsmYgBkJdFWQocAajiRNqyFvXj5qo4/2Z8WWqi1nIZBk 5QwkcAZ+n+JAjMEAAEIAB0WIQToy4X3aHcFem4n93r2t4JPQmmgcwUCZCXRVgAKCRD2t4JPQmmg c9SgEACJgEzspH+uZoG/13hgM9PKxSlrJyloUsc7rMZyyotfkMCSrhRetdU39HLP0ov13RMhD7x HyTbtXG6yJcsIyrNO7E1sjh/VsWLuSRUNc88IRngD4gPFXZ9dYSOxP8xhg8vSW59EmXi4eHVEW9 FvharwxCLiaMfgbpEn6oKbgTv+5f9O5jJZ8In6M1fGvK8FPXd1AZc8fIrIQrGumKSK+SxUDP4z6 8+cx1flxxcXVJHy63snCsalNGkWNj03Fea9dLRaGGQn5YcWjeUcO5wr9JMNLsb9ab6alLGgWzwr yvf2tPBVjV3FMEWfYBRqDEhYtXdL857Nzu9ZXX1c+KRDrmYoKNHoNUdL5E1G+g7ZIruYEBAr4b5 wzd+dkxAR30b0v8xbsdJ7VcTwppgqA5j67MJZbNMstx9fGZMSuTKIQE23VZc28fJHfhTX/fJTwT Uw9lMq4duCsQHUKbEby1KjZz2xZRCvw5khoin0vCsBG1kB5CG3tMzD2WtUT9l7/4lZ0pNxBiFv7 DU3Fn4vpAPDBC5RZTS0Gu17bcoLNkKFlMTE6J/c96yTIKjQL7Q5JLlWzJ/uM7PTIrP+tHpzS9pU Ybx1BImfE7gTrV3hC08Kw/i6FBHVhwbtPLTF8tkzi2fCIFgjwGCcW6uqBVX3Y1Lpj3SAZe0MC+G 7ASkSErSjwx7pPw== X-Developer-Key: i=matthieu.baerts@tessares.net; a=openpgp; fpr=E8CB85F76877057A6E27F77AF6B7824F4269A073 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761817669289735474?= X-GMAIL-MSGID: =?utf-8?q?1761817669289735474?= |
Series |
docs & checkpatch: allow Closes tags with links
|
|
Commit Message
Matthieu Baerts
March 30, 2023, 6:13 p.m. UTC
As a follow-up of a previous patch modifying the documentation to
allow using the "Closes:" tag, checkpatch.pl is updated accordingly.
checkpatch.pl now no longer complain when the "Closes:" tag is used by
itself or after the "Reported-by:" tag.
Fixes: 76f381bb77a0 ("checkpatch: warn when unknown tags are used for links")
Fixes: d7f1d71e5ef6 ("checkpatch: warn when Reported-by: is not followed by Link:")
Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/373
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
---
v3:
- split into 2 patches: the previous one adds a list with all the
"link" tags. This one only allows the "Closes" tag. (Joe Perches)
- "Closes" is no longer printed between parenthesis. (Thorsten
Leemhuis)
---
scripts/checkpatch.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Thu, 2023-03-30 at 20:13 +0200, Matthieu Baerts wrote: > As a follow-up of a previous patch modifying the documentation to > allow using the "Closes:" tag, checkpatch.pl is updated accordingly. > > checkpatch.pl now no longer complain when the "Closes:" tag is used by > itself or after the "Reported-by:" tag. > > Fixes: 76f381bb77a0 ("checkpatch: warn when unknown tags are used for links") > Fixes: d7f1d71e5ef6 ("checkpatch: warn when Reported-by: is not followed by Link:") I don't think this _fixes_ anything. I believe it's merely a new capability. > Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/373 > Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net> > --- > v3: > - split into 2 patches: the previous one adds a list with all the > "link" tags. This one only allows the "Closes" tag. (Joe Perches) > - "Closes" is no longer printed between parenthesis. (Thorsten > Leemhuis) > --- > scripts/checkpatch.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > index 9d092ff4fc16..ca58c734ff22 100755 > --- a/scripts/checkpatch.pl > +++ b/scripts/checkpatch.pl > @@ -620,7 +620,7 @@ our $signature_tags = qr{(?xi: > Cc: > )}; > > -our @link_tags = qw(Link); > +our @link_tags = qw(Link Closes); > > #Create a search and print patterns for all these strings to be used directly below > our $link_tags_search = ""; >
Hi Joe, Thank you for this review. On 31/03/2023 00:43, Joe Perches wrote: > On Thu, 2023-03-30 at 20:13 +0200, Matthieu Baerts wrote: >> As a follow-up of a previous patch modifying the documentation to >> allow using the "Closes:" tag, checkpatch.pl is updated accordingly. >> >> checkpatch.pl now no longer complain when the "Closes:" tag is used by >> itself or after the "Reported-by:" tag. >> >> Fixes: 76f381bb77a0 ("checkpatch: warn when unknown tags are used for links") >> Fixes: d7f1d71e5ef6 ("checkpatch: warn when Reported-by: is not followed by Link:") > > I don't think this _fixes_ anything. > I believe it's merely a new capability. When we first saw the new warnings checkpatch.pl was producing on a pre Linux 6.3-rc1, we thought it was an issue with checkpatch: the "Closes:" tag with a URL has been used for years without any complaints from checkpatch and people as far as I know. At some point we had to stop using it to please checkpatch and that's why we thought something had to be fixed: we initially [1] thought the "Closes:" tag case had been forgotten when the two mentioned commits had been created. But I'm fine to see these "Fixes" tags removed, I understand the "Closes:" tags were tolerated before but just not documented. Do I send a v4 without these two "Fixes" tags? It means only the v6.3 would not accept "Closes:" tags but we can work around that. [1] https://lore.kernel.org/all/a27480c5-c3d4-b302-285e-323df0349b8f@tessares.net/ Cheers, Matt
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 9d092ff4fc16..ca58c734ff22 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -620,7 +620,7 @@ our $signature_tags = qr{(?xi: Cc: )}; -our @link_tags = qw(Link); +our @link_tags = qw(Link Closes); #Create a search and print patterns for all these strings to be used directly below our $link_tags_search = "";