Re: [PATCH 01/10] checkpatch: pre-filter obsolete MAINTAINERS checks and gate on OBSOLETE

From: Joe Perches

Date: Wed Dec 02 2026 - 20:47:37 EST


On Tue, 2026-12-01 at 14:53 -0800, Bart Van Assche wrote:
> Pre-filter candidate paths in is_maintained_obsolete() by scanning
> MAINTAINERS once via load_obsolete_candidates() for sections whose S: line
> matches obsolete, and gate the call site in process() on
> show_type("OBSOLETE").

I have a hard type believing this useful.
It basically duplicates a bit of get_maintainer.

> Avoid spawning perl scripts/get_maintainer.pl (~210 ms per unique file)
> for paths that cannot match any obsolete F: or N: entry and when OBSOLETE
> warnings are suppressed via --ignore or --types. Fall back to invoking
> scripts/get_maintainer.pl whenever MAINTAINERS is not a regular file, a
> .get_maintainer.conf file is present, an obsolete section contains K: or
> bracket/brace globs, or an N: regex fails to compile.