Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp769782rwl; Fri, 31 Mar 2023 02:02:07 -0700 (PDT) X-Google-Smtp-Source: AKy350YjrWWrQsK39p9Dx0RnlacM5gKH3SwYSGYnhbj5QxwDUrT+ovKTvfgiwWKYV9gF3z/WpoyI X-Received: by 2002:a17:906:1001:b0:93f:e5e4:8c13 with SMTP id 1-20020a170906100100b0093fe5e48c13mr16674480ejm.5.1680253327413; Fri, 31 Mar 2023 02:02:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680253327; cv=none; d=google.com; s=arc-20160816; b=Fswf4YK++VlXb8yZvErK790qvTZQR7nRvcFrfa/DdCXadWFMbX6MhEslxJQxkvafDe VxB8RFGRUg7kNSZl0T5SQAXNxvMc80Sz/HinL7lz22Tab+lAhySD9IeN0Rhk5ZLg5tVk o7PmscZDfCStLvBvGZ1YiocdR345rbK49rBFPbOuwT0rn3D8nhw/h3mVb6N/LxiEMjoz NbKDGKrOOsi53HQ0W9UPUT+TiSuihydM3fHay7BWkPYHG8ggdKLnxHPaclHbU+0LE8mi vu86JfjoQYu6rhGTZHvZHN0EryC5ilqgmvSExtAWZIe9PlAvptRWEL79rXxA+PBpVykv 7aCQ== 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=aOYWlKPKiMu86K6Ez8ztdHAnDWXiX7A32TvILLdQZgw=; b=mnFe4XHQm6zDGfGWhniS0XjL5syHQOW+AXeDudL/TlgGfFEI0f8kkE5cVTSQ8LXsNa xZYp4HHUFzpHXMRK/bPJneOiUSP+T0NeVnrx/QdRROkhL18/a+pbHhtCrtmuqjPZxCkx xUizY7Uw+xC1HsauZU4CzI6mbHLTo0yN6kYZkcBpitKTRolVG8oswIDkENgTkmZHTY9U nrL/XRm4BALIls3xH06XA8aBi231uRj3YME6/TZKgd8hlBzlKKPJn0HyugsluFjDCQQK EAlG45YKFOD4izh6qW/V0NV2w/J0VOf4tQgQpYez5fVV8vmTHgbdnH6f73OZCQ18bNqV bqbA== 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 a20-20020a170906685400b009394bed261dsi1467068ejs.107.2023.03.31.02.01.38; Fri, 31 Mar 2023 02:02:07 -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 S230236AbjCaI6O (ORCPT + 99 others); Fri, 31 Mar 2023 04:58:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231135AbjCaI6H (ORCPT ); Fri, 31 Mar 2023 04:58:07 -0400 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5BA61D932; Fri, 31 Mar 2023 01:57:45 -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 1piAZm-0000VF-2g; Fri, 31 Mar 2023 10:57:38 +0200 Message-ID: Date: Fri, 31 Mar 2023 10:57:35 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 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-v3-0-d1bdcf31c71c@tessares.net> <20230314-doc-checkpatch-closes-tag-v3-4-d1bdcf31c71c@tessares.net> From: Thorsten Leemhuis Subject: Re: [PATCH v3 4/4] checkpatch: check for misuse of the link tags In-Reply-To: <20230314-doc-checkpatch-closes-tag-v3-4-d1bdcf31c71c@tessares.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;linux@leemhuis.info;1680253065;82b905b8; X-HE-SMSGID: 1piAZm-0000VF-2g 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 30.03.23 20:13, Matthieu Baerts wrote: > "Link:" and "Closes:" tags have to be used with public URLs. > > It is difficult to make sure the link is public but at least we can > verify the tag is followed by 'http(s):'. > > With that, we avoid such a tag that is not allowed [1]: > > Closes: > > Link: https://lore.kernel.org/linux-doc/CAHk-=wh0v1EeDV3v8TzK81nDC40=XuTdY2MCr0xy3m3FiBV3+Q@mail.gmail.com/ [1] > Signed-off-by: Matthieu Baerts > [...] > +# Check for misuse of the link tags > + if ($in_commit_log && > + $line =~ /^\s*(\w+:)\s*(\S+)/) { > + my $tag = $1; > + my $value = $2; > + if ($tag =~ /^$link_tags_search$/ && $value !~ /^https?:/) { > + WARN("COMMIT_LOG_WRONG_LINK", > + "'$tag' should be followed by a public http(s) link\n" . $herecurr); > + } > + } > + I must be missing something here, but it looks to me like this is checked twice now. See this line in patch2 (which is changed there, but the check itself remains): > } elsif ($rawlines[$linenr] !~ m{^link:\s*https?://}i) { Ciao, Thorsten