All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] checkpatch: MAINTAINERS: warn on missing paths
@ 2026-07-12  8:14 Eugene Mavick
  2026-07-12  8:20 ` Joe Perches
  2026-07-12  9:04 ` Joe Perches
  0 siblings, 2 replies; 4+ messages in thread
From: Eugene Mavick @ 2026-07-12  8:14 UTC (permalink / raw)
  To: Andy Whitcroft, Joe Perches, Dwaipayan Ray, Lukas Bulwahn
  Cc: linux-kernel, Eugene Mavick

Warn when F: or X: entries point to nonexistent files or patterns.
There have been instances of typos in file entries in the past, and this
patch helps prevents that.

Signed-off-by: Eugene Mavick <m@mavick.dev>
---
 scripts/checkpatch.pl | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 0492d6afc9a1..e82e330ea460 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -3750,6 +3750,15 @@ sub process {
 					}
 				}
 			}
+# check MAINTAINERS file entry for file existence
+			if ($rawline =~ /^\+[FX]:\s*+(.*)/) {
+				my $entry = $1;
+				my @matches = glob($entry);
+				if (!@matches) {
+					WARN("MAINTAINERS_FILE_MISSING",
+					     "MAINTAINERS file entry references nonexistent file: '$entry'\n" . $herecurr);
+				}
+			}
 		}
 
 # check for DT compatible documentation

---
base-commit: 979c294509f9248fe1e7c358d582fb37dd5ca12d
change-id: 20260712-chkpatch-file-entries-90ae03915cde

Best regards,
-- 
Eugene Mavick <m@mavick.dev>


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-07-13 14:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-12  8:14 [PATCH] checkpatch: MAINTAINERS: warn on missing paths Eugene Mavick
2026-07-12  8:20 ` Joe Perches
2026-07-12  9:04 ` Joe Perches
2026-07-13 14:47   ` Eugene Mavick

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.