Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2590277rwb; Fri, 20 Jan 2023 05:05:18 -0800 (PST) X-Google-Smtp-Source: AMrXdXsoooDJiznpDCOkdiXssBnbN9XY4H17VNWpocqZJfDMV3kqrKN7adGdEzqQ4Ww0FuP94vXK X-Received: by 2002:a17:906:7e10:b0:846:cdd9:d23 with SMTP id e16-20020a1709067e1000b00846cdd90d23mr16040765ejr.19.1674219918656; Fri, 20 Jan 2023 05:05:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674219918; cv=none; d=google.com; s=arc-20160816; b=S2lILgsr7g+Ryo/l+aqCW6B5elKa7W3F/CdmSo6cS4yK7Fyk4qXqtw/Eji2d4z5km5 JK9mEvZ+3xpgOhGZHNdlbvfQg25G23YcdzLI1rY+3V5PynmK0ajb4K6q/f8QfLAR5c0D OxBPkMU1HyDUpNf0QJGyGhYkOdkDQ3fAFwXQdppfah85u7Qk2QKaCvUETjxga0Qeujc8 C8HnXLwe3JDpBhHqmEo1N1UJM/cRaLAuX5Ncu5AiARzTfn6QX9SBg0dKTrCwv02Bo1LO hSlIfyaMTmFs8tmKasiFzq8zye8I4Bob83a4wMEE1bA9ikovX7i0Z2tnJ/QtDCnN5tNo 8Fpg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds18-20020a170907725200b007fed8db38a8si20680399ejc.114.2023.01.20.05.05.06; Fri, 20 Jan 2023 05:05:18 -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 + 49 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 ); 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 ; 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 To: Joe Perches , Andy Whitcroft , Dwaipayan Ray , Lukas Bulwahn Cc: =?UTF-8?q?Kai=20Wasserb=C3=A4ch?= , Andrew Morton , 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: X-Mailer: git-send-email 2.39.0 In-Reply-To: References: 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.39.0