From: Eugene Mavick <m@mavick.dev>
To: Andy Whitcroft <apw@canonical.com>, Joe Perches <joe@perches.com>,
Dwaipayan Ray <dwaipayanray1@gmail.com>,
Lukas Bulwahn <lukas.bulwahn@gmail.com>
Cc: linux-kernel@vger.kernel.org, Eugene Mavick <m@mavick.dev>
Subject: [PATCH] checkpatch: MAINTAINERS: warn on missing paths
Date: Sun, 12 Jul 2026 16:14:36 +0800 [thread overview]
Message-ID: <20260712-chkpatch-file-entries-v1-1-68bcf96ff59e@mavick.dev> (raw)
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>
next reply other threads:[~2026-07-12 8:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-12 8:14 Eugene Mavick [this message]
2026-07-12 8:20 ` Joe Perches
2026-07-12 9:04 ` Joe Perches
2026-07-13 14:47 ` Eugene Mavick
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260712-chkpatch-file-entries-v1-1-68bcf96ff59e@mavick.dev \
--to=m@mavick.dev \
--cc=apw@canonical.com \
--cc=dwaipayanray1@gmail.com \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lukas.bulwahn@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome