Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp24523rwl; Thu, 3 Nov 2022 19:08:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM401897jndwJIjfimBYjNTHTB4zEntoAdxv7JJFeO6NyIUWim9R6rIQ8GnxIl/OZYxo5vD1 X-Received: by 2002:a05:6402:c07:b0:461:87ab:78aa with SMTP id co7-20020a0564020c0700b0046187ab78aamr33723163edb.258.1667527715878; Thu, 03 Nov 2022 19:08:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667527715; cv=none; d=google.com; s=arc-20160816; b=v87RSY1dG36zE6/KyTRv/ak4KrZYVXtmsJ0/rcTSXp9LlF5Vy5+gp5r7md5QpYy1SH X2yuwGBhSMnENhCKFiNkRbieXlMN897cy6ep7sFzht8vqK0bvGJreej4zeqjbCUznXuD QaZbaEBFDF8sAHNPZTJPvF2my7xSe3h0vDeMjV5Egx9VVZA3OBo9s+6IEDz1GWAYu0H1 CoDEIcMLRDqsvrYJH/Dvuj+arH7+osYQiVByoXj4oo5EMMfjMJnFAzYTvDEVb+D6FlyQ rXE5sKVCd5VyqnR+KJE6Sszzrihgmc1JQLju77xGk3KNNRANW2wdp6hhKDzSYgDYGEBU lgwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=in95UZoBjg8MYU4J4jV2qMj9rlFYiADxnMg4PF3p4gY=; b=Wd+lxqoa9E9bPszxJUFb8KZGg6J5LC5MZ45DMWmddUEOMVc+9WjBNTq+quy0p1JWZO tWQUGjuvKVPurAJHkJKpxbmjDPP7/l1tMJvwzX7G+aHHpgfkfDOst6in81/rFotYs9oK 6l6Iv2hHTT9kj+NUaoR0opYoliw81fdrteNeg6l3SxPxAgd1x2BMY6ns06j6UDcRNjtm egde08vDMXUzfYUloX6JHa7qJv+vX6YZCTYKalhz07lYu/YS7BSYLky+AsBjYUyUHPZW bG+kocC54PAMGwOnuDyml1AmtMT8N4LvfAsE1pLQFFDzKM2e9AMdiI3OxYMLXfFyd0Sw htTg== 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 hc32-20020a17090716a000b007808f3f4cbcsi3800690ejc.239.2022.11.03.19.08.12; Thu, 03 Nov 2022 19:08:35 -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; 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 S229983AbiKDB1o convert rfc822-to-8bit (ORCPT + 97 others); Thu, 3 Nov 2022 21:27:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbiKDB1l (ORCPT ); Thu, 3 Nov 2022 21:27:41 -0400 Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B761923174 for ; Thu, 3 Nov 2022 18:27:40 -0700 (PDT) Received: from omf16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id E00641A0286; Fri, 4 Nov 2022 01:27:38 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf16.hostedemail.com (Postfix) with ESMTPA id 981B32000D; Fri, 4 Nov 2022 01:27:10 +0000 (UTC) Message-ID: <8a23b1d3ee853cee73385e8144338f399cbe3165.camel@perches.com> Subject: Re: [PATCH] checkpatch: add warning for non-lore mailing list URLs From: Joe Perches To: Peter Collingbourne , Bjorn Helgaas , Andrew Morton Cc: Andy Whitcroft , Dwaipayan Ray , Lukas Bulwahn , Kees Cook , Randy Dunlap , linux-kernel@vger.kernel.org, Bjorn Helgaas Date: Thu, 03 Nov 2022 18:27:35 -0700 In-Reply-To: References: <20221019202843.40810-1-helgaas@kernel.org> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.44.4 (3.44.4-2.fc36) MIME-Version: 1.0 X-Stat-Signature: k5fbijti5u4cnio9x1rtsq7paj7gh18m X-Rspamd-Server: rspamout07 X-Rspamd-Queue-Id: 981B32000D X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_NONE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX195DEQza47zJE3kAJu+iVXs3kMvJuV1/Y0= X-HE-Tag: 1667525230-345043 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 Thu, 2022-11-03 at 18:07 -0700, Peter Collingbourne wrote: > On Wed, Oct 19, 2022 at 03:28:43PM -0500, Bjorn Helgaas wrote: > > From: Bjorn Helgaas > > > > The lkml.org, marc.info, spinics.net, etc archives are not quite as useful > > as lore.kernel.org because they use different styles, add advertising, and > > may disappear in the future. The lore archives are more consistent and > > more likely to stick around, so prefer https://lore.kernel.org URLs when > > they exist. > > If the commit message contains a line like: > > Cc: linux-arm-kernel@lists.infradead.org > > this patch causes checkpatch.pl to complain. Would it be possible to > restrict this to URLs? Yes, I believe this would probably work well enough: --- scripts/checkpatch.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 7be93c3df2bcb..fe25642d8bacc 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3336,7 +3336,8 @@ sub process { } # Check for mailing list archives other than lore.kernel.org - if ($rawline =~ m{\b$obsolete_archives}) { + if ($rawline =~ m{\b$obsolete_archives} && + $rawline !~ /^\s*cc:/i) { WARN("PREFER_LORE_ARCHIVE", "Use lore.kernel.org archive links when possible - see https://lore.kernel.org/lists.html\n" . $herecurr); }