Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1133079rwb; Thu, 15 Dec 2022 06:50:30 -0800 (PST) X-Google-Smtp-Source: AA0mqf7FKudwak+F7sZtQ94boIg4y8nBfiDk+GhbgFmcESoctdHz4JZVVtcchuSBnKir/voK8Z69 X-Received: by 2002:a17:90a:17ee:b0:219:f993:7f30 with SMTP id q101-20020a17090a17ee00b00219f9937f30mr28603272pja.32.1671115830645; Thu, 15 Dec 2022 06:50:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671115830; cv=none; d=google.com; s=arc-20160816; b=SIQ3OWtIcm6JojvOVroqsWQUkwexBb0vJC3PR1PaYvsDgz25oVI6HNzoK+HR9kEWPM gNOeiqxTkEApk0pVHjcmy+chSq2Fj2pcu1p1inyBqIKbUMLG2lXropANOSsugRHpSa68 upPOS6cBGBduxM4oUPxNNpknILduD3wfPnfUjva/rd07tlVdI7JpGiKhr/oGmOtpRIwa o/Mo928aASDn46xE8LVYBn6S3S4s0ARxeW+SKEeESAnIPzz1ZXKYgWASlWDImC8ZuoQo 7I/xB/AWtMn6lYmhb1IPK19rVD8M2yLd3tAq+jUJnKC/igZdwmk5rTNjSUhV+XKwjcK9 lluw== 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=xZ1pILHfyEgsZAL1voxcQEdyMMx7QQNyb9HSL1sDyjE=; b=dKArRyCCPOAMfhi8v7/bXhEZfGaRAF5BVB7HNd7jOSmiScxkHraHRDzvzCrdaPeTz0 B9bEd/V3iXIz9EJC7l3dXWslD+ahYDVKixYX4+oODz+1g9H0gJaDOgC4C0HhMf9Nd30d 36Ee3xGtfFRXRnD8igG9UxHQgn2eGT0DCvKezsZb1EYRdaY69vaqt6aI+K6w3Ckb66p2 FEEQKk0upfc3U+iR9uX+9a+SsP+2Ndk7RGImMkHf/OKDyft/N2TnSawaX+nzUIkzoq8u P1JYQSnj0ZMh9/qqU+7Eq1Pfrfgcb1oPvuo9ghBgKmxmZoGqIJ7pC0OX26w4vRTeMm1C wpkA== 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 li14-20020a17090b48ce00b00213b2bb261asi5037417pjb.33.2022.12.15.06.50.21; Thu, 15 Dec 2022 06:50:30 -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 S229755AbiLOOnk (ORCPT + 68 others); Thu, 15 Dec 2022 09:43:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229750AbiLOOni (ORCPT ); Thu, 15 Dec 2022 09:43:38 -0500 Received: from blackmesa.kw-serverwartung.de (blackmesa.kw-serverwartung.de [78.46.90.79]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E72551AF05 for ; Thu, 15 Dec 2022 06:43:34 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by blackmesa.kw-serverwartung.de (Postfix) with ESMTP id 0B87C7B81E3; Thu, 15 Dec 2022 14:43:33 +0000 (UTC) Received: from blackmesa.kw-serverwartung.de ([127.0.0.1]) by localhost (blackmesa.kw-serverwartung.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HZg095Sj7CRe; Thu, 15 Dec 2022 14:43:30 +0000 (UTC) Received: from citadel.fritz.box (i59F4DEB3.versanet.de [89.244.222.179]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by blackmesa.kw-serverwartung.de (Postfix) with ESMTPSA id 54E317B807E; Thu, 15 Dec 2022 14:43:30 +0000 (UTC) From: =?UTF-8?q?Kai=20Wasserb=C3=A4ch?= To: linux-kernel@vger.kernel.org Cc: Thorsten Leemhuis , Andrew Morton , Andy Whitcroft , Joe Perches , Dwaipayan Ray , Lukas Bulwahn Subject: [PATCH 0/3, v3] feat: checkpatch: warn about dicouraged link tags and missing links Date: Thu, 15 Dec 2022 15:43:23 +0100 Message-Id: X-Mailer: git-send-email 2.35.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE 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 Hey, Thorsten Leemhuis suggested the following two changes to checkpatch, which I hereby humbly submit for review. Please let me know if any changes would be required for acceptance. The third patch came out of the preview rounds and fixes an odd behaviour noticed then. The two main changes should help developers write commit messages in a way that's preferred by Linus and will greatly help Thorsten's regression tracking efforts. Patches are against mm/mm-nonmm-stable (which apparently is the tree checkpatch changes are merged through). Cheers, Kai 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) Suggested-by: Thorsten Leemhuis Signed-off-by: Kai Wasserbäch Signed-off-by: Thorsten Leemhuis 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, 30 insertions(+), 4 deletions(-) -- 2.35.1