Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1656396rwb; Thu, 8 Dec 2022 13:34:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Dpfw1LaCvP338cxJdZBcs1pP7HyCGvUa45p7r0okhVD2mJVxxoSkLBY7h+ItMnewbHfOl X-Received: by 2002:a05:6402:528d:b0:468:dc9:ec08 with SMTP id en13-20020a056402528d00b004680dc9ec08mr9335589edb.17.1670535245870; Thu, 08 Dec 2022 13:34:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670535245; cv=none; d=google.com; s=arc-20160816; b=BIWl0wRcKcUlKLhFyUIkOli65FCq+ognT4tpSHsUSFa9FRIOl3y+Y4bOSad87gf9i+ lYKekaHyTGdR8zPGdPalYo9s8SLGANKDfPGi3nq+2HGrHvnzsf1FHfDk9t3+dcEmfQNj UJ80b91mSA/FLvuS6I5tS3jgrf34WqfBSZv0KA9doeBy7yNVfLNHvKZ5vlj/1AllHR2d JFBXTSvc2NCPCtSLHFnkRVkzSv0OIZCkqTxmEWoeQLU/dYwKQXKE2WfBQaaAP+4NEtQu qH/+aaIkd09JPjhdoXj5tyJ2ojYufXdrGgvLth17SWYr9Vw6reQ/TNYoMliKyTSX1qHi gwnQ== 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=dW3S2F0VlI9e7iZs1yfJMCyitJSkylMDKCmEplIoaXA=; b=Akaa3rFowHFmWpFS7pJPdm4RQNLyDYxVMteJkIYQrHdgPqNZcJNkNBaazY+jktdy8j 4FzWPp/W+FHLnzRhJMYdPSTrSiupPHTSGFImfAfoABCVbHouypNcGWYltOlQD0MrNhwa uc+10zMoXjR6pEcn/n510hDD6YLzpH/Pzjq8aJLNQcwCYR2TcFT9C2udeRpN/zFcTG4Z M8MF9T8X3f1T1jdAJ8LH6J9JFIb4cpq5BIW79SlnM6bkNjd9aGOKaMYWul6meziaR3BX qoHk+CqxWMVGHN/jUU/I4ln7rIPI5vBJPWq9BWFUyil1BEcRA9BfLJrzs3tRv2lPg527 GPhw== 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 qb27-20020a1709077e9b00b007ac60b82ea5si20931419ejc.96.2022.12.08.13.33.47; Thu, 08 Dec 2022 13:34:05 -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 S229684AbiLHVLh (ORCPT + 74 others); Thu, 8 Dec 2022 16:11:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229543AbiLHVLg (ORCPT ); Thu, 8 Dec 2022 16:11:36 -0500 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E7076FF25 for ; Thu, 8 Dec 2022 13:11:35 -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 1p3OB3-0002Ow-4Z; Thu, 08 Dec 2022 22:11:33 +0100 Message-ID: Date: Thu, 8 Dec 2022 22:11:32 +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: <3953eb4913bf9b5610854624c4c632e710cd1ec9.camel@perches.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-bounce-key: webpack.hosteurope.de;linux@leemhuis.info;1670533895;fb42e2eb; X-HE-SMSGID: 1p3OB3-0002Ow-4Z 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 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. Ciao, Thorsten