projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15c03cf
)
checkpatch: speed up checking for filenames in sections marked obsolete
author
Joe Perches
<joe@perches.com>
Tue, 11 Oct 2016 20:52:02 +0000
(13:52 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 11 Oct 2016 22:06:30 +0000
(15:06 -0700)
Adding -f to the get_maintainer.pl invocation means git isn't invoked
by get_maintainer.pl for known filenames.
This reduces the overall time to run checkpatch.
Link:
http://lkml.kernel.org/r/22991e3a295aeb399b43af0478b6e5809106ccee.1472684066.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>
scripts/checkpatch.pl
patch
|
blob
|
history
diff --git
a/scripts/checkpatch.pl
b/scripts/checkpatch.pl
index 4ecb66c595f4e29f5fc0269231dbd7219225c87a..e44dc0c75d54a59b61c66684349360082000c32a 100755
(executable)
--- a/
scripts/checkpatch.pl
+++ b/
scripts/checkpatch.pl
@@
-759,7
+759,7
@@
sub is_maintained_obsolete {
return 0 if (!(-e "$root/scripts/get_maintainer.pl"));
- my $status = `perl $root/scripts/get_maintainer.pl --status --nom --nol --nogit --nogit-fallback $filename 2>&1`;
+ my $status = `perl $root/scripts/get_maintainer.pl --status --nom --nol --nogit --nogit-fallback
-f
$filename 2>&1`;
return $status =~ /obsolete/i;
}