Skip to contentSkip to conversation

checkpatch: speed up checking for filenames in sections marked obsolete

PATCH In review [email protected] 1 participant 1 message Oct 11, 2016 Checkpatch

lore
Share & tools
lore
#0 lore raw

PATCH 21/102 checkpatch: speed up checking for filenames in sections marked obsolete

From: Joe Perches <[email protected]>
Subject: checkpatch: speed up checking for filenames in sections marked obsolete

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.

---

 scripts/checkpatch.pl |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/checkpatch.pl renamed from scripts/checkpatch.pl~checkpatch-speed-up-checking-for-filenames-in-sections-marked-obsolete +1 -1
diff -puN scripts/checkpatch.pl~checkpatch-speed-up-checking-for-filenames-in-sections-marked-obsolete 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;
 }

_