Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp167439rwl; Fri, 24 Mar 2023 23:35:50 -0700 (PDT) X-Google-Smtp-Source: AKy350aK7ZqtC5wl5Adp4qw6pi4jMRjQpI/iBbgfhbumiyUFi92roU8y+CgX7pxFhK987m5rvn/9 X-Received: by 2002:a17:906:5785:b0:93d:1c2b:bd23 with SMTP id k5-20020a170906578500b0093d1c2bbd23mr6342245ejq.39.1679726150131; Fri, 24 Mar 2023 23:35:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679726150; cv=none; d=google.com; s=arc-20160816; b=zGPfvIiLBinVTGl/jkfWoTtfMf2BGj/URDtEc8bcYJYLd3qGMrgh9QbArvekfsiKca 8X7kINhrdFqBInzjKKGG78Nar9DOZKegfInK7G8znsDt2URy58W+39wAlaiRh4h+bJjC xtlmHCzJ0HaIj1rujQRh64/noRywroRt2NIYmLd1/ojtJdZlWp58EzVxZX36ClW+XuJm f8bQvMy9dMnQ1Nwuxqclu3MfUPtqIGaGZjLR3p8cY5nYvqKnT2jPHAouehCfwS/+ntv3 LZWxHe3qVMsknPrMRpH0mzEpweseVPaiyKUGUtAfa9Tq7y8gs8a6MHehxkgZvVgzWMYk 99jw== 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=Gw18Qtd0Fbm+5xmg8Zv8Cc9GzVSoCN4YJsTpHE55J+c=; b=wcWK9o1EIPDiJ9bXFJo728yW3l3Cw1h6HkAPkJUzAOroWqlJZ5qTdVHkEEoVTSajJ3 UeUJGc3qRbnquVgwb9Elzyku6Utx8XM7tYXVBpwTf8pNeuH9VFJoEEPhzOneeDqxFgnO Ue3J0UhrmZq2u8Bc2l0xRAd+zgrVrWQTFQvUsLW1rd093Z7eiZqVKUX/usBGSoQyLJt2 n+k9ERapjayrH/ph2BC3cOiEq9V9ab8EDL8ZxT5onXMXBrnekmOPKZUL45+CksDs5WKp AolCoTUSj7KFFIPbqW9sMALjjoAw/Wn3LmBWND0qW9GuoIl3NM2FNwWgDxY9dxADJ8qt OEjQ== 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 wg1-20020a17090705c100b0093d836861f8si6273558ejb.31.2023.03.24.23.35.25; Fri, 24 Mar 2023 23:35:50 -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 S231861AbjCYGZp (ORCPT + 99 others); Sat, 25 Mar 2023 02:25:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232038AbjCYGZn (ORCPT ); Sat, 25 Mar 2023 02:25:43 -0400 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70931E1A8; Fri, 24 Mar 2023 23:25:34 -0700 (PDT) Received: from [2a02:8108:8980:2478:8cde:aa2c:f324:937e]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1pfxLD-0003qT-Gp; Sat, 25 Mar 2023 07:25:27 +0100 Message-ID: <2f96048b-c580-625f-6fc7-06237292efe3@leemhuis.info> Date: Sat, 25 Mar 2023 07:25:26 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Content-Language: en-US, de-DE To: Matthieu Baerts , Jonathan Corbet , Andy Whitcroft , Joe Perches , Dwaipayan Ray , Lukas Bulwahn , =?UTF-8?Q?Kai_Wasserb=c3=a4ch?= , Andrew Morton , David Airlie , Daniel Vetter , Konstantin Ryabitsev , Bagas Sanjaya , Linus Torvalds Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, mptcp@lists.linux.dev References: <20230314-doc-checkpatch-closes-tag-v2-0-f4a417861f6d@tessares.net> <20230314-doc-checkpatch-closes-tag-v2-2-f4a417861f6d@tessares.net> From: Thorsten Leemhuis Subject: Re: [PATCH v2 2/2] checkpatch: allow Closes tags with links In-Reply-To: <20230314-doc-checkpatch-closes-tag-v2-2-f4a417861f6d@tessares.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;linux@leemhuis.info;1679725534;5e6bb86f; X-HE-SMSGID: 1pfxLD-0003qT-Gp X-Spam-Status: No, score=-0.0 required=5.0 tests=NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 24.03.23 19:52, Matthieu Baerts wrote: > As a follow-up of the previous patch modifying the documentation to > allow using the "Closes:" tag, checkpatch.pl is updated accordingly. > > checkpatch.pl now mentions the "Closes:" tag between brackets to express > the fact it should be used only if it makes sense. > > While at it, checkpatch.pl will not complain if the "Closes" tag is used > with a "long" line, similar to what is done with the "Link" tag. > > [...] > > -# check if Reported-by: is followed by a Link: > +# check if Reported-by: is followed by a Link: (or Closes:) tag Small detail: why the parenthesis here? Why no simply "check if Reported-by: is followed by a either Link: or Closes: tag". Same below... > if ($sign_off =~ /^reported(?:|-and-tested)-by:$/i) { > if (!defined $lines[$linenr]) { > WARN("BAD_REPORTED_BY_LINK", > - "Reported-by: should be immediately followed by Link: to the report\n" . $herecurr . $rawlines[$linenr] . "\n"); > - } elsif ($rawlines[$linenr] !~ m{^link:\s*https?://}i) { > + "Reported-by: should be immediately followed by Link: (or Closes:) to the report\n" . $herecurr . $rawlines[$linenr] . "\n"); ...here, where users actually get to see this and might wonder why it's written like that, without getting any answer. Ciao, Thorsten