From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6ADDFC4332F for ; Fri, 9 Dec 2022 08:33:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229714AbiLIIdK (ORCPT ); Fri, 9 Dec 2022 03:33:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbiLIIdI (ORCPT ); Fri, 9 Dec 2022 03:33:08 -0500 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BA5C22290 for ; Fri, 9 Dec 2022 00:33:07 -0800 (PST) Received: from [2a02:8108:963f:de38:eca4:7d19:f9a2:22c5]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1p3Yob-0002cH-Dr; Fri, 09 Dec 2022 09:33:05 +0100 Message-ID: <2b801c41-b244-b5ee-ec7b-2ad19c9b08ea@leemhuis.info> Date: Fri, 9 Dec 2022 09:33:04 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Content-Language: en-US, de-DE To: Joe Perches , =?UTF-8?Q?Kai_Wasserb=c3=a4ch?= , linux-kernel@vger.kernel.org Cc: Andrew Morton , Andy Whitcroft , Dwaipayan Ray , Lukas Bulwahn References: <4af6cd7f0833f18e9eee8caba1913e682c5ec071.1670527774.git.kai@dev.carbon-project.org> <3953eb4913bf9b5610854624c4c632e710cd1ec9.camel@perches.com> From: Thorsten Leemhuis Subject: Re: [PATCH 2/2] checkpatch: warn when Reported-by: is not followed by Link: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-bounce-key: webpack.hosteurope.de;linux@leemhuis.info;1670574787;aa1cb252; X-HE-SMSGID: 1p3Yob-0002cH-Dr Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08.12.22 22:34, Joe Perches wrote: > 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:, Well, sure, because many people forgot to place them -- and this patch is trying to change that for reasons outlined in the commit description. > it appears that "Fixes:" should also be allowed. Well, that would defeat the purpose of this patch -- and there is no need to, as developers can still put Fixes: tag above or below the combo of Reported-by: and Link:. > and lore definitely dominates the Link: uses. > > And IMO: the lkml.kernel.org entries should instead use lore. Well, that might be something nice to have (if Konstantin thinks it's worth the trouble, as lkml.kernel.org likely needs to stick around anyway to not break existing links). But that IMHO is something independent of this patch-set, because the proper solution afaics then would be to check all Link: tags in the commit message, not only those next to a Reported-by. Ciao, Thorsten