summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2019-09-25 19:46:32 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2019-09-25 20:51:39 -0400
commit634cffcc9478e954d121c3e27e53de4f0d917ac8 (patch)
tree7c5a0a4bf877b31b15b81b8d5684ecf308c16967 /scripts
parent091cb0994edd20d67521094ac9c6ec9804058d9a (diff)
checkpatch: don't interpret stack dumps as commit IDs
Add more types of lines that appear to be stack dumps that also include hex lines that might otherwise be interpreted as commit IDs. Link: http://lkml.kernel.org/r/ff00208289224f0ca4eaf4ff7c9c6e087dad0a63.camel@perches.com Link: http://lkml.kernel.org/r/f7dc9727795db3802809a24162abe0b67e14123b.1563575364.git.joe@perches.com Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/checkpatch.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 93a7edfe0f05..3c0ee0dde850 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2725,8 +2725,10 @@ sub process {
2725 ($line =~ /^\s*(?:WARNING:|BUG:)/ || 2725 ($line =~ /^\s*(?:WARNING:|BUG:)/ ||
2726 $line =~ /^\s*\[\s*\d+\.\d{6,6}\s*\]/ || 2726 $line =~ /^\s*\[\s*\d+\.\d{6,6}\s*\]/ ||
2727 # timestamp 2727 # timestamp
2728 $line =~ /^\s*\[\<[0-9a-fA-F]{8,}\>\]/)) { 2728 $line =~ /^\s*\[\<[0-9a-fA-F]{8,}\>\]/) ||
2729 # stack dump address 2729 $line =~ /^(?:\s+\w+:\s+[0-9a-fA-F]+){3,3}/ ||
2730 $line =~ /^\s*\#\d+\s*\[[0-9a-fA-F]+\]\s*\w+ at [0-9a-fA-F]+/) {
2731 # stack dump address styles
2730 $commit_log_possible_stack_dump = 1; 2732 $commit_log_possible_stack_dump = 1;
2731 } 2733 }
2732 2734