Re: [PATCH -v2] MAINTAINERS: Fix Intel TDX kernel file patterns
From: Borislav Petkov
Date: Sun Nov 01 2026 - 14:38:34 EST
On Sun, Nov 01, 2026 at 10:59:24AM -0800, Joe Perches wrote:
> Not completely no.
Well, whatever you do, this needs some documentation so that it is perfectly
clear to people using patterns.
Something perhaps like this below. You probably can come up with a better
formulation - my only angle is to make this as easier and as clear to users of
the pattern stuff as possible.
diff --git a/MAINTAINERS b/MAINTAINERS
index 015cf66afb96..59bbf779958f 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -30,13 +30,16 @@ Descriptions of section entries and preferred order
See Documentation/maintainer/maintainer-entry-profile.rst for details.
T: *SCM* tree type and location.
Type is one of: git, hg, quilt, stgit, topgit
- F: *Files* and directories wildcard patterns.
+ F: *Files* and directories wildcard patterns. The matching strategy
+ mimicks git's pathspec shell glob patterns with some exceptions.
A trailing slash includes all files and subdirectory files.
F: drivers/net/ all files in and below drivers/net
F: drivers/net/* all files in drivers/net, but not below
F: */net/* all files in "any top level directory"/net
F: fs/**/*foo*.c all *foo*.c files in any subdirectory of fs
- One pattern per line. Multiple F: lines acceptable.
+ One pattern per line. Multiple F: lines acceptable. One way to
+ verify the pattern is using something like
+ git ls-files -- <pattern>
X: *Excluded* files and directories that are NOT maintained, same
rules as F:. Files exclusions are tested before file matches.
Can be useful for excluding a specific subdirectory, for instance:
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette