Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7152901rwb; Tue, 6 Dec 2022 01:46:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf5CED6KFdTIEh1GvHDjTtWh5X2DYXce8rqxslq8j1Qqrhnd58asFv1ugJraT6haH3h3elfS X-Received: by 2002:a17:903:1c3:b0:189:e91b:c35 with SMTP id e3-20020a17090301c300b00189e91b0c35mr3101808plh.173.1670319975578; Tue, 06 Dec 2022 01:46:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670319975; cv=none; d=google.com; s=arc-20160816; b=YlV60r6QKdqCyrs0BwDrD7WR6k8QVN0EHjVsrto2ffGEGrHB7NgpuyibURdBTG7mr4 U9OaO1/LV8rdBZR1cqumfA9Ng+k9n10HobCjqRUHdZ/dH6WK2n3rij0NRfFvD1O8vR7M BgELJ2iT5Q0IgRM1jNILkUhrDSi9cuaBe5gIbj3ECChfj4TegnELj8jASo7EYub/H2et UGwQVPh3nj3SOthbPhrKIH2DyGOXQiN6t9j5j9IYxpeM/d1GadtV3qTGtmXsK9z3a7X0 svlx4kgfjWws3ZCy04+NjhAUhx8DZxPZCSga41D5XSavfvrH23JkutUXtjTNJWEzd83q BodA== 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=e86Le11na/xKZ0ETCwRIQ1rJxg6/l9m625v3ihYmnNg=; b=md99iZ9YckFNMYgiXtSt9P6GhQQeNMjedLV8hiZ9tO99lVqL0hCjBPBbo+feFmVc3X 7YVYpbPk999VP3i+oe8jjOyhMq7GLu+KjbrGDFmq1U/CpnM+OwsLprf+O309agXlEiwq hqtOe0gNOhN7NXYEHf204/+eEgLRWQcFPdEvfD/1RtAEdZRHEjJrGZD/KBsBtv5VIZsg 9CipcHtMHmRNsy8ZdRYcejistLv2tkPXJeMY7Xz2ZmYv3HkJBc9vO0HKO2fADIRvM4qw DDIQmZaXhxO/xGxjuA8PNQ91vrGcXwNpmaaP13GbHuZRgkZEzsDOBIfE8e+oIu8NKTLX BdJA== 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 m3-20020a1709026bc300b001781cf050b6si16109479plt.14.2022.12.06.01.46.04; Tue, 06 Dec 2022 01:46:15 -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 S234159AbiLFIua (ORCPT + 79 others); Tue, 6 Dec 2022 03:50:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230480AbiLFIu1 (ORCPT ); Tue, 6 Dec 2022 03:50:27 -0500 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69A866441 for ; Tue, 6 Dec 2022 00:50:26 -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 1p2Tei-0008PG-Gw; Tue, 06 Dec 2022 09:50:24 +0100 Message-ID: <9958a748-2608-8ed2-6e8f-2f3291286271@leemhuis.info> Date: Tue, 6 Dec 2022 09:50:20 +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 Cc: LKML , Andrew Morton , =?UTF-8?Q?Kai_Wasserb=c3=a4ch?= References: <20221205131424.36909375d90d5a40cd028bc0@linux-foundation.org> <11a9fe60f5333a931b8d75f67808b6d923c16dfa.camel@perches.com> <25f4838b-208a-cf8c-914c-b2092665d56f@leemhuis.info> <23a61dd072ee1d2cc5b54281b0a9dc13e01aa0b8.camel@perches.com> From: Thorsten Leemhuis Subject: Re: Fw: [PATCH 0/2] feat: checkpatch: prohibit Buglink: and warn about missing Link: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;linux@leemhuis.info;1670316626;59e58b62; X-HE-SMSGID: 1p2Tei-0008PG-Gw 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 On 06.12.22 08:44, Joe Perches wrote: > On Tue, 2022-12-06 at 08:17 +0100, Thorsten Leemhuis wrote: >> On 06.12.22 07:27, Thorsten Leemhuis wrote: >>> On 06.12.22 06:54, Joe Perches wrote: > [] >>>> and perhaps a more >>>> generic, "is the thing in front of a URI/URL" a known/supported entry, >>>> instead of using an known invalid test would be a better mechanism. >>> >>> Are you sure about that? It's not that I disagree completely, but it >>> sounds overly restrictive to me and makes it harder for new tags to >>> evolve in case we might want them. > > It's easy to add newly supported values to a list. > >>> And what tags would be on this allow-list? Anything else then "Link" and >>> "Patchwork"? Those are the ones that looked common and valid to me when >>> I ran >>> >>> git log --grep='http' v4.0.. | grep http | grep -v ' Link: ' | less >>> >>> and skimmed the output. Maybe "Datasheet" should be allowed, too -- not >>> sure. > [] >>> But I found a few others that likely should be on the disallow list: >>> "Closes:", "Bug:", "Gitlab issue:", "References:", "Ref:", "Bugzilla:", >>> "RHBZ:", and "link", as "Link" should be used instead in all of these >>> cases afaics. > > Do understand please that checkpatch will never be perfect. > At best, it's just a guidance tool. Of course -- and that's actually a reason why I prefer a disallow list over an allow list, as that gives guidance in the way of "don't use this tag, use Link instead" instead of enforcing "always use Link: when linking somewhere" (now that I've written it like that it feels even more odd, because it's obvious that it's a link, so why bother with a tag; but whatever). I also think the approach with a disallow list will not bother developers much, while the other forces them a bit to much into a scheme. > To me most of these are in the noise level, but perhaps all should just > use Link: > > $ git log -100000 --format=email -P --grep='^\w+:[ \t]*http' | \ > grep -Poh '^\w+:[ \t]*http' | \ > sort | uniq -c | sort -rn > 103889 Link: http > 415 BugLink: http > 372 Patchwork: http > 270 Closes: http > 221 Bug: http > 121 References: http > [...] Ha, I considered doing something like that when I wrote my earlier mail, but was to lazy. :-D thx! Yeah, they are not that often, but I grew tired arguing about that, that's why I think checkpatch is the better place and in the better position to handle that. Anyway, so how to move forward now? Do you insist on a allow list (IOW: a Link: or Patchwork: before every http...)? Or is a disallow list with the most common unwanted tags for links (that you thankfully compiled) fine for you as well? Ciao, Thorsten