From b81f67c562dcaf7bbb6aa3a07e9dc6558f6432bd Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Tue, 24 Aug 2021 09:59:59 +1000 Subject: [PATCH] checkpatch-improve-git_commit_id-test-fix add missing && Cc: Denis Efremov Cc: Dwaipayan Ray Cc: Joe Perches Cc: Lukas Bulwahn Signed-off-by: Andrew Morton Signed-off-by: Stephen Rothwell --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 7c33ffafa3f0c..c27d2312cfc30 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3181,7 +3181,7 @@ sub process { # possible SHA-1 matches. # A commit match can span multiple lines so this block attempts to find a # complete typical commit on a maximum of 3 lines - if ($perl_version_ok + if ($perl_version_ok && $in_commit_log && !$commit_log_possible_stack_dump && $line !~ /^\s*(?:Link|Patchwork|http|https|BugLink|base-commit):/i && $line !~ /^This reverts commit [0-9a-f]{7,40}/ && -- 2.50.1