Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BAF65C0018C for ; Wed, 16 Dec 2020 17:10:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 790C6233FD for ; Wed, 16 Dec 2020 17:10:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727057AbgLPRKm (ORCPT ); Wed, 16 Dec 2020 12:10:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:59902 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726918AbgLPRKm (ORCPT ); Wed, 16 Dec 2020 12:10:42 -0500 Date: Wed, 16 Dec 2020 09:10:26 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1608138626; bh=fe2fm0vIWefD2detzNACDunh+t00XTXARZcW5akLdMg=; h=From:To:Subject:From; b=L0pRvXRNSyJX6tDRxSOCnjsUPo1kMlNVqPa07dM2hKa3H2TgZ2RRNTgSox93WCr3q Y0XYq/OJNzVOtvHkD3gnqo19OGo+sm5eWsryJOz4MqhFCOuavjBkT1JNZqTMQ1UmxG HPp6HGJkXpHvrTelHspxENuJGS2rsWbxcKwzYGsc= From: akpm@linux-foundation.org To: dwaipayanray1@gmail.com, joe@perches.com, mm-commits@vger.kernel.org, yepeilin.cs@gmail.com Subject: [merged] checkpatch-add-warning-for-lines-starting-with-a-in-commit-log.patch removed from -mm tree Message-ID: <20201216171026.qb3iX2fNT%akpm@linux-foundation.org> User-Agent: s-nail v14.8.16 Precedence: bulk Reply-To: linux-kernel@vger.kernel.org List-ID: X-Mailing-List: mm-commits@vger.kernel.org The patch titled Subject: checkpatch: add warning for lines starting with a '#' in commit log has been removed from the -mm tree. Its filename was checkpatch-add-warning-for-lines-starting-with-a-in-commit-log.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Dwaipayan Ray Subject: checkpatch: add warning for lines starting with a '#' in commit log Commit log lines starting with '#' are dropped by git as comments. Add a check to emit a warning for these lines. Also add a --fix option to insert a space before the leading '#' in such lines. Link: https://lkml.kernel.org/r/20201202205740.127986-1-dwaipayanray1@gmail.com Signed-off-by: Dwaipayan Ray Suggested-by: Joe Perches Suggested-by: Peilin Ye Tested-by: Peilin Ye Acked-by: Joe Perches Signed-off-by: Andrew Morton --- scripts/checkpatch.pl | 9 +++++++++ 1 file changed, 9 insertions(+) --- a/scripts/checkpatch.pl~checkpatch-add-warning-for-lines-starting-with-a-in-commit-log +++ a/scripts/checkpatch.pl @@ -3033,6 +3033,15 @@ sub process { $commit_log_possible_stack_dump = 0; } +# Check for lines starting with a # + if ($in_commit_log && $line =~ /^#/) { + if (WARN("COMMIT_COMMENT_SYMBOL", + "Commit log lines starting with '#' are dropped by git as comments\n" . $herecurr) && + $fix) { + $fixed[$fixlinenr] =~ s/^/ /; + } + } + # Check for git id commit length and improperly formed commit descriptions if ($in_commit_log && !$commit_log_possible_stack_dump && $line !~ /^\s*(?:Link|Patchwork|http|https|BugLink|base-commit):/i && _ Patches currently in -mm which might be from dwaipayanray1@gmail.com are