Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2479267rwb; Mon, 7 Nov 2022 13:54:23 -0800 (PST) X-Google-Smtp-Source: AMsMyM7lHmNBWc/Na5HyL3Sh6KBZgk4aBkNokceGQyvHOf4GUwdSY1d/muwprQ7Dfyn3dNWtOtnD X-Received: by 2002:a05:6a00:1687:b0:565:a932:f05a with SMTP id k7-20020a056a00168700b00565a932f05amr35992495pfc.21.1667858063171; Mon, 07 Nov 2022 13:54:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667858063; cv=none; d=google.com; s=arc-20160816; b=SmemJGc+Yk88ae8mL+vqpyvucMLhvIbVR9b7D6ToaNr2oU4mVFvTy/Z+Z34pHQsV3z kB/HkBTxF9A1PrrP73ZSR5Oc0IPEGiYTlnkgsuo5z5oAgKzo/SFST6DSw0tekSUgU9Jn oRIva8I+gMKisuPG6ORG7tiW2J9AsFPC8u1ArDfi5WtbRU8c7Rkv93hX9tnpAQybdy+v pXjHR3nyz2XRCBSBfdaxWS2YzSwsua2U+KqPFGCZVQS+WBt+70YKgrXyDST10Pt3I+1k rKaMPN69Xe5Tad9rINIJDbR4DFxVeD09Mz4bQaM0/rp2MOUuyarzaMeSufkauNnTE3Dx snEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=huoWTfaSBSNabOTu8jLdOIsULUfjwezMDUAEtSsfxiU=; b=AIaCI91SjAIQLVemjcz33PNmOhl5SB+olpkJe7Su9dCy+qcsRxvFKByO2ql96OBGID ZebmG+sQgAvQE/5tUcmbA8VviPg8X3XwYTG3/QfKTOmbb2Gny0C0YRRxufFiQy43Dh4i RB5b984uOOhYHtYV80FSqG5W33cTbid6bbYS13QB5vvpglhbolNYRFM0a8cFc6Rs5aO5 l1HR/xRAcpy9W2AApJCKbCAOAIay/SPdl6qaLNo/Ais6jVYtYI1zJiQdJ0OKkU0jtQPd j3wMjZvkes7jETx2xN18cIFx4xmphi0z2ulz5kO0JAqQMmhQFnXKOl9ziTPmAJZTAtei CCGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=kYXoRYVl; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w21-20020a17090a461500b00209b6044d31si10024679pjg.51.2022.11.07.13.54.11; Mon, 07 Nov 2022 13:54:23 -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; dkim=pass header.i=@google.com header.s=20210112 header.b=kYXoRYVl; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233017AbiKGVBP (ORCPT + 93 others); Mon, 7 Nov 2022 16:01:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232582AbiKGVBO (ORCPT ); Mon, 7 Nov 2022 16:01:14 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 827EBCD for ; Mon, 7 Nov 2022 13:01:13 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id v124-20020a1cac82000000b003cf7a4ea2caso10429882wme.5 for ; Mon, 07 Nov 2022 13:01:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=huoWTfaSBSNabOTu8jLdOIsULUfjwezMDUAEtSsfxiU=; b=kYXoRYVlVEcb7RbrPtvjd8OGKkcA9ffT/2fJt6eI1BaARstfQoDIXHaEW0XGJ5juOi 1oD/TPTdmvY35FBMKX6tlxJfrgTKGWUrnzFgThyvE35jScUMi5rlVWnrbc9HtwDc4Whj bCeslbQU1Zdy6UOzVjUo78g3CYWuGtJmYLWVDsk1xVkYhbfqmNPQ8bVhza0Dt3oTUrpo arE3yVvUiZ/zPYmA9diWMAVPqTBapEDru+jyK+ZN7gCRPMP5aYoTifnId+GcHTrV0F3Y ZWEMTwVPlp75J43a+vQtt+j5vifNqFU+SWFOs/xwe7LQraiHfqH7CenJVmPodJdxkr6v soIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=huoWTfaSBSNabOTu8jLdOIsULUfjwezMDUAEtSsfxiU=; b=QBDRY0TJLmqwwFySXBQQcDUCpoHTbW1RK5qq3EEPpJvI/yHOCuOOYVUdzqOR1zXjBT +EYUnZu/BjvyvbSg6C2vrNHpKG78cLvKOBEA/FcJfk7ea07yWsLQRI3QIl8yMzaFPSxC rPkSKEEDCstbwAV5rU1mFqcykFAxpECXcHnUmDbgf587jdvuprjT4f5iDhl8zMfIQIs+ Xn3SokapA+QhgR87QWshLO1QZ7ClfLlkTRy/FL+25grkNzHRiPuayr5qIVKTCvP7ku2/ W9Dm6rQe9+Cg6tO9q5lF5X5h3zCPqq6rgV4z7NzgeMjicHs82cStKF94CITFpO97GarJ WKkQ== X-Gm-Message-State: ACrzQf1gK7l9YoZn+PDdKZCcb0xf0DP2X1k1+w7cNNbEb6P075SPHWN9 358uFHLvOJjwNQClrphQwpI8LxMOIx0327C4gHgI/w== X-Received: by 2002:a1c:f214:0:b0:3be:4e7c:1717 with SMTP id s20-20020a1cf214000000b003be4e7c1717mr35289744wmc.171.1667854871647; Mon, 07 Nov 2022 13:01:11 -0800 (PST) MIME-Version: 1.0 References: <20221107205405.GA419220@bhelgaas> In-Reply-To: <20221107205405.GA419220@bhelgaas> From: Peter Collingbourne Date: Mon, 7 Nov 2022 13:00:59 -0800 Message-ID: Subject: Re: [PATCH] checkpatch: add warning for non-lore mailing list URLs To: Bjorn Helgaas Cc: Joe Perches , Andrew Morton , Andy Whitcroft , Dwaipayan Ray , Lukas Bulwahn , Kees Cook , Randy Dunlap , linux-kernel@vger.kernel.org, Bjorn Helgaas Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Mon, Nov 7, 2022 at 12:54 PM Bjorn Helgaas wrote: > > On Thu, Nov 03, 2022 at 06:34:31PM -0700, Peter Collingbourne wrote: > > On Thu, Nov 3, 2022 at 6:27 PM Joe Perches wrote: > > > 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) { > > > > Can we make this (to|cc): instead? Otherwise developers (like me) who > > use custom scripts to add To: headers to their patches before passing > > them to checkpatch.pl will also hit this warning if their patch is > > being sent To: one of these mailing lists. > > Why not make it look for "http" instead of the absence of "cc"? "https" as well, but yes, that would make more sense to me, and would be less likely to require user workarounds. Peter