Message ID | cover.1674217480.git.linux@leemhuis.info |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp172729wrn; Fri, 20 Jan 2023 04:36:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXsidllBhepBXro8rl0QRpzexMHofbxsOXm+vOhoUYj9giaK2/E6+XxqwanQ9bC0HEk9Vu2R X-Received: by 2002:a17:906:ced0:b0:870:5ed6:74b4 with SMTP id si16-20020a170906ced000b008705ed674b4mr14852962ejb.61.1674218187352; Fri, 20 Jan 2023 04:36:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674218187; cv=none; d=google.com; s=arc-20160816; b=G/Xoj1zki8aSxLZ3VXEw5mu5I+oDmm4hOxLxjnz7OWkpYHfQwzowMK8Mf6rHX2Mbbe cTcxV/ng6qeRop50umV8ie4ENnbBqwJ4+RnasrBAL3enHQWOrlF4pzbF+5IIVNc7Sjlv 0ytj54/qzT+dosMfboXs2QlQ5+S19mPd26V3RcA6Wgjh3HP+OiVIrd5n7cvWP4CIiiUY fOm44Kgx1ual4daV+kKB+AU258yBDCtSeJA7AAMAxENmu/yW4UvY3mpIZ7Aj5Vlv3Eqb CrjxiKcHy6yyp004jew8qz30GM5jSHKaKAXPlU8zRVodoPUhbbNwhY1gMc5v/CApPcnE /t7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=fc5OUgUgUryP2CBzgMStbCEjyLNvfVOm+ODf11DE+fs=; b=KxJb6VIWQ3stUtAmyaFng0FAKsdpRmEtBtoxqjzKvD9jH3UoAadSkI6KPLfwgYAlzr S7bCXEJPwrjiCLdflBLFjkJSJMYKeBbr60H6V3OrZbpZak9b+4wxTNwX94huUNkkcpX2 5tFBFhY2ZH6WTNO17k0hromtFINoUFMpJ47wfx2rO1j4vL2T+mVqGGmBAuGFTiYwsFC9 /EeyAm+E0I7DfCE9yhkY+scehxTBaitZGwx/t2CIZpofYnxgSPChfGlao57C1Rsmv8oy ovXmBhplnIDtNzVa3xOVz9DdDuRN0nAeZ/HrUD03XtDmdMlNG6R9KwiKRoksghC3Twqg bDvw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qa16-20020a170907869000b0087760800a8dsi8427842ejc.623.2023.01.20.04.36.03; Fri, 20 Jan 2023 04:36:27 -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 S230193AbjATMfh (ORCPT <rfc822;literming00@gmail.com> + 99 others); Fri, 20 Jan 2023 07:35:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230157AbjATMf2 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 20 Jan 2023 07:35:28 -0500 Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14231BD17C for <linux-kernel@vger.kernel.org>; Fri, 20 Jan 2023 04:35:24 -0800 (PST) Received: from ip4d14bd73.dynamic.kabel-deutschland.de ([77.20.189.115] helo=truhe.fritz.box); authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1pIqc5-0007pV-Ex; Fri, 20 Jan 2023 13:35:21 +0100 From: Thorsten Leemhuis <linux@leemhuis.info> To: Joe Perches <joe@perches.com>, Andy Whitcroft <apw@canonical.com>, Dwaipayan Ray <dwaipayanray1@gmail.com>, Lukas Bulwahn <lukas.bulwahn@gmail.com> Cc: =?utf-8?q?Kai_Wasserb=C3=A4ch?= <kai@dev.carbon-project.org>, Andrew Morton <akpm@linux-foundation.org>, linux-kernel@vger.kernel.org Subject: [PATCH v4 0/3] checkpatch.pl: warn about discouraged tags and missing Link: tags Date: Fri, 20 Jan 2023 13:35:17 +0100 Message-Id: <cover.1674217480.git.linux@leemhuis.info> X-Mailer: git-send-email 2.39.0 In-Reply-To: <cover.1670152844.git.kai@dev.carbon-project.org> References: <cover.1670152844.git.kai@dev.carbon-project.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-bounce-key: webpack.hosteurope.de;linux@leemhuis.info;1674218125;93060bd7; X-HE-SMSGID: 1pIqc5-0007pV-Ex X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755545010174163582?= X-GMAIL-MSGID: =?utf-8?q?1755545010174163582?= |
Series |
checkpatch.pl: warn about discouraged tags and missing Link: tags
|
|
Message
Thorsten Leemhuis
Jan. 20, 2023, 12:35 p.m. UTC
Hi, please consider the following checkpatch.pl patches for review. The first two changes make checkpatch.pl check for a few mistakes wrt to links to bug reports Linus recently complained about a few times. Avoiding those is also important for my regression tracking efforts a lot, as the automated tracking performed by regzbot relies on the proper usage of the Link: tag. The third patch fixes a few small oddities noticed in existing code during review of the two changes. Ciao, Thorsten --- v3->v4: - address review feedback from Joe (do not allow leading spaces in matches, check if Link: is actually followed by a URL in one go, and use m{} for matching https://) (Thorsten) - catch Reported-and-tested-by as well (Thorsten) v2->v3: - address review feedback from Joe (grammer fixes, use of $herecurr, use of --no-merges in commit log quote) (Thorsten) - warn when people try to add version information to the commit log using code suggested by Joe (Thorsten) - add a patch to make existing code in a nearby area use $herecurr where it should, which Joe noticed during review v1->v2: - add commit messages explaining the reasoning (Thorsten) - approach the usage of wrong tags with an allow list as suggested by Joe (Thorsten) Kai Wasserbäch (2): checkpatch: warn when unknown tags are used for links checkpatch: warn when Reported-by: is not followed by Link: Thorsten Leemhuis (1): checkpatch: use proper way for show problematic line scripts/checkpatch.pl | 34 +++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) base-commit: 5dc4c995db9eb45f6373a956eb1f69460e69e6d4
Comments
On Fri, 2023-01-20 at 13:35 +0100, Thorsten Leemhuis wrote: > Hi, please consider the following checkpatch.pl patches for review. > > The first two changes make checkpatch.pl check for a few mistakes wrt to > links to bug reports Linus recently complained about a few times. > Avoiding those is also important for my regression tracking efforts a > lot, as the automated tracking performed by regzbot relies on the proper > usage of the Link: tag. > > The third patch fixes a few small oddities noticed in existing code > during review of the two changes. Hey Andrew. Please forward this patch series upstream. Thanks, Joe > > Ciao, Thorsten > --- > v3->v4: > - address review feedback from Joe (do not allow leading spaces in > matches, check if Link: is actually followed by a URL in one go, > and use m{} for matching https://) (Thorsten) > - catch Reported-and-tested-by as well (Thorsten) > > v2->v3: > - address review feedback from Joe (grammer fixes, use of $herecurr, use > of --no-merges in commit log quote) (Thorsten) > - warn when people try to add version information to the commit log > using code suggested by Joe (Thorsten) > - add a patch to make existing code in a nearby area use $herecurr where > it should, which Joe noticed during review > > v1->v2: > - add commit messages explaining the reasoning (Thorsten) > - approach the usage of wrong tags with an allow list as suggested by > Joe (Thorsten) > > Kai Wasserbäch (2): > checkpatch: warn when unknown tags are used for links > checkpatch: warn when Reported-by: is not followed by Link: > > Thorsten Leemhuis (1): > checkpatch: use proper way for show problematic line > > scripts/checkpatch.pl | 34 +++++++++++++++++++++++++++++----- > 1 file changed, 29 insertions(+), 5 deletions(-) > > > base-commit: 5dc4c995db9eb45f6373a956eb1f69460e69e6d4