From: Joe Perches <joe@perches.com>
To: "Thorsten Leemhuis" <linux@leemhuis.info>,
"Kai Wasserbäch" <kai@dev.carbon-project.org>,
linux-kernel@vger.kernel.org
Cc: Andrew Morton <akpm@linux-foundation.org>,
Andy Whitcroft <apw@canonical.com>,
Dwaipayan Ray <dwaipayanray1@gmail.com>,
Lukas Bulwahn <lukas.bulwahn@gmail.com>
Subject: Re: [PATCH 2/2] checkpatch: warn when Reported-by: is not followed by Link:
Date: Thu, 08 Dec 2022 13:34:18 -0800 [thread overview]
Message-ID: <af55807391b7cd119c02a0a4f5c88bcda89b243a.camel@perches.com> (raw)
In-Reply-To: <a834b2a3-273a-f40a-57c4-ae1e89aa67c4@leemhuis.info>
On Thu, 2022-12-08 at 22:11 +0100, Thorsten Leemhuis wrote:
> Joe, many thx for your time and your valuable feedback. I agree with
> most of it and will look into addressing it tomorrow, but there is one
> area where I have a different option:
>
> On 08.12.22 21:21, Joe Perches wrote:
> > On Thu, 2022-12-08 at 20:32 +0100, Kai Wasserbäch wrote:
> > > +
> > > + # check if Reported-by: is followed by a Link:
> > > + if ($sign_off =~ /^reported-by:$/i) {
> > > + if (!defined $lines[$linenr]) {
> > > + WARN("BAD_REPORTED_BY_LINK",
> > > + "Reported-by: should be immediately followed by Link: to the report\n" . "$here\n" . $rawline);
> > > + } elsif ($rawlines[$linenr] !~ /^\s*link:\s*(.*)/i) {
> > > + WARN("BAD_REPORTED_BY_LINK",
> > > + "Reported-by: should be immediately followed by Link: to the report\n" . "$here\n" . $rawline . "\n" .$rawlines[$linenr]);
> > > + } elsif ($lines[$linenr] !~ /https?:\/\//i) {
> > > + WARN("BAD_REPORTED_BY_LINK",
> > > + "Link: following Reported-by: should contain an URL\n" . "$here\n" . $rawline . "\n" .$rawlines[$linenr]);
> >
> > [...]
> >
> > Also the actual link line should likely be from lore
> >
> > So maybe:
> > } elsif ($lines[$linenr] !~ m{https?://lore.kernel.org/.+}i) {
> > WARN("BAD_REPORTED_BY_LINK",
> > "Link: following Reported-by: should use a lore.kernel.org URL\n" . $herecurr . $rawlines[$linenr]);
>
> I'm pretty sure that's not want we want, as from regression tracking I
> known that we have other links that should continue to work here. Links
> to bugzilla.kernel.org immediately come to my mind, for example. Then
> there are some subsystems that use issue trackers on github or in gitlab
> instances (DRM for example), which must work here, too; and we
> occasionally even have links to bugs in bugzilla instances from RH or
> SUSE there, as sometimes valuable details for code archeologists can be
> found there.
Outside the fact there are relatively few existing uses of Link: after
Reported-by:, it appears that "Fixes:" should also be allowed.
$ git log --no-merges --format=email -P -i --grep "^Reported-by:" -100000 | \
grep -A1 "^Reported-by:" | \
grep -v -P '^(Reported-by:|\-\-)' | \
cut -f1 -d":" | sort | uniq -c | sort -rn | head -20
31719 Signed-off-by
4556 Tested-by
4276 Cc
2976 Fixes
2304 Reviewed-by
1526 Acked-by
949 Suggested-by
821 Link
387
228 CC
139 Bugzilla
82 Reported-and-tested-by
69 Debugged-by
68 References
63 Bisected-by
43 Co-developed-by
34 LKML-Reference
29 Diagnosed-by
27 [ paulmck
26 Addresses-Coverity-ID
and lore definitely dominates the Link: uses.
And IMO: the lkml.kernel.org entries should instead use lore.
Maybe there should be some other patterns allowed. Dunno.
$ git log --no-merges --format=email -P -i --grep "^Reported-by:" -100000 | \
grep -A1 "^Reported-by:" | \
grep '^Link:' | \
cut -f1-3 -d"/" | sort | uniq -c | sort -rn | head -20
551 Link: https://lore.kernel.org
67 Link: http://lkml.kernel.org
42 Link: https://bugzilla.kernel.org
28 Link: https://github.com
16 Link: https://lkml.kernel.org
11 Link: lore.kernel.org/r/64644a2f-4a20-bab3-1e15-3b2cdd0defe3@omprussia.ru
10 Link: https://patchwork.freedesktop.org
10 Link: https://github.blog
9 Link: https://syzkaller.appspot.com
9 Link: https://lkml.org
6 Link: https://www.spinics.net
5 Link: https://gitlab.freedesktop.org
5 Link: https://bugs.debian.org
5 Link: http://lore.kernel.org
4 Link: https://www.openwall.com
4 Link: https://patchwork.kernel.org
4 Link: http://patchwork.freedesktop.org
3 Link: https://marc.info
3 Link: https://bugzilla.linux-nfs.org
2 Link: https://bugzilla.suse.com
next prev parent reply other threads:[~2022-12-08 21:34 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-04 11:33 [PATCH 0/2] feat: checkpatch: prohibit Buglink: and warn about missing Link: Kai Wasserbäch
2022-12-04 11:33 ` [PATCH 1/2] feat: checkpatch: error on usage of a Buglink tag in the commit log Kai Wasserbäch
2022-12-04 11:33 ` [PATCH 2/2] feat: checkpatch: Warn about Reported-by: not being followed by a Link: Kai Wasserbäch
2022-12-08 19:32 ` [PATCH 1/2] checkpatch: warn when unknown tags are used for links Kai Wasserbäch
2022-12-08 19:58 ` Joe Perches
2022-12-09 9:33 ` Thorsten Leemhuis
2022-12-09 16:57 ` Joe Perches
2022-12-08 19:32 ` [PATCH 2/2] checkpatch: warn when Reported-by: is not followed by Link: Kai Wasserbäch
2022-12-08 20:21 ` Joe Perches
2022-12-08 21:11 ` Thorsten Leemhuis
2022-12-08 21:34 ` Joe Perches [this message]
2022-12-09 8:33 ` Thorsten Leemhuis
2022-12-09 9:54 ` Thorsten Leemhuis
2022-12-09 17:00 ` Joe Perches
2022-12-15 14:43 ` [PATCH 0/3, v3] feat: checkpatch: warn about dicouraged link tags and missing links Kai Wasserbäch
2022-12-15 14:43 ` [PATCH 1/3] checkpatch: warn when unknown tags are used for links Kai Wasserbäch
2022-12-15 14:43 ` [PATCH 2/3] checkpatch: warn when Reported-by: is not followed by Link: Kai Wasserbäch
2022-12-15 18:00 ` Joe Perches
2022-12-18 14:54 ` Thorsten Leemhuis
2022-12-15 14:43 ` [PATCH 3/3] checkpatch: use proper way for show problematic line Kai Wasserbäch
2023-01-20 12:35 ` [PATCH v4 0/3] checkpatch.pl: warn about discouraged tags and missing Link: tags Thorsten Leemhuis
2023-01-20 12:35 ` [PATCH v4 1/3] checkpatch: warn when unknown tags are used for links Thorsten Leemhuis
2023-02-27 13:25 ` Matthieu Baerts
2023-03-02 5:36 ` Thorsten Leemhuis
2023-01-20 12:35 ` [PATCH v4 2/3] checkpatch: warn when Reported-by: is not followed by Link: Thorsten Leemhuis
2023-03-02 4:46 ` Jakub Kicinski
2023-03-02 5:17 ` Thorsten Leemhuis
2023-03-02 5:40 ` Jakub Kicinski
2023-03-02 8:27 ` Dmitry Vyukov
2023-03-02 9:04 ` Thorsten Leemhuis
2023-03-02 9:11 ` Dmitry Vyukov
2023-03-02 9:48 ` Thorsten Leemhuis
2023-03-03 2:10 ` Andrew Morton
2023-03-06 8:53 ` Dmitry Vyukov
2023-03-07 11:36 ` Thorsten Leemhuis
2023-01-20 12:35 ` [PATCH v4 3/3] checkpatch: use proper way for show problematic line Thorsten Leemhuis
2023-01-20 15:20 ` [PATCH v4 0/3] checkpatch.pl: warn about discouraged tags and missing Link: tags Joe Perches
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=af55807391b7cd119c02a0a4f5c88bcda89b243a.camel@perches.com \
--to=joe@perches.com \
--cc=akpm@linux-foundation.org \
--cc=apw@canonical.com \
--cc=dwaipayanray1@gmail.com \
--cc=kai@dev.carbon-project.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@leemhuis.info \
--cc=lukas.bulwahn@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®