Commit 0616efa4 authored by Joe Perches's avatar Joe Perches Committed by Linus Torvalds

checkpatch: speed up checking for filenames in sections marked obsolete

Adding -f to the invocation means git isn't invoked
by for known filenames.

This reduces the overall time to run checkpatch.

Link: default avatarJoe Perches <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 15c03cfe
......@@ -759,7 +759,7 @@ sub is_maintained_obsolete {
return 0 if (!(-e "$root/scripts/"));
my $status = `perl $root/scripts/ --status --nom --nol --nogit --nogit-fallback $filename 2>&1`;
my $status = `perl $root/scripts/ --status --nom --nol --nogit --nogit-fallback -f $filename 2>&1`;
return $status =~ /obsolete/i;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment