Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2387631rwb; Fri, 9 Dec 2022 01:13:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf4KKQBoTEQj3D1SSmdEjlngCsxWscyiXo4jVrNIoUApjLVp49AMi1HWcBCaZj7H66ocgKlf X-Received: by 2002:a17:90a:17ee:b0:219:f993:7f30 with SMTP id q101-20020a17090a17ee00b00219f9937f30mr5043436pja.32.1670577197442; Fri, 09 Dec 2022 01:13:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670577197; cv=none; d=google.com; s=arc-20160816; b=S5iwmGjy84hfkYpGmfmyWQJQCOlOmg/BJt2fYSSJfRh7ZLhkQVb620aNW7CcrfsmFI ad/9wnulDlXZcVYRFLzTj79XqWeM4mFpK5wOnfRUUfXmuFnqmkRDtJWlz6daje6zyoM2 XRRvWp66ion6+0j9Jl5U+5Gapr2F9mY26WBEIiMyMtLxzhwuHiwWp9WOxf1/sZktR2f3 mcqawLBtrBOv8i7MQ79dpkrcTq7tn8SuVhUb535TEEN8Is/H+2Qc432rwlPPN9/2ScJk G8fszi4KlH/HSiIqxTljGQOSMa26ZwNW9YNFCWV59sTuScmFcMNaVlj9XOmLFxGtIdV+ wG3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id; bh=j0Arft/UwaYLgEgJV/rnVZXnhuCdzxLU+dS0uUY4H8U=; b=W+GEg+Cx3R2Pi5wyEBguFejXKHXFowQE2g0ASsm3BIny65xXJgWXKCnlII7qB3K/Pi Q/4ZdG+OCzeSjzLIdLeDgjS8eSnbv/JUq/pRilygmWslUXB3lQZtjs0GHGItBrCjGNrX TipiFl93YLcAvCtRyp55Uh1xOuWZ3q9OkDyF6d7SJcdlBonFu5D8a1maNlISf5WlJeSF fvutTMvJhB5F/HUw4JpGHPe69nSQ3ot3soULUsZV9V2+ltpsjRQSPV8+RLqp5MTx1rn9 PQUivUyjAtHII2Kw03EGIq6deEzOcH/SGq5nbflIhcga9521pv6bQsXmVtbHc2Bq4SR5 xQpQ== ARC-Authentication-Results: i=1; mx.google.com; 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 oe8-20020a17090b394800b0021d1a63e807si1251764pjb.97.2022.12.09.01.13.08; Fri, 09 Dec 2022 01:13:17 -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; 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 S229680AbiLIIdJ (ORCPT + 73 others); Fri, 9 Dec 2022 03:33:09 -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 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,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 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