Re: [PATCH -v2] MAINTAINERS: Fix Intel TDX kernel file patterns

From: Borislav Petkov

Date: Sat Oct 31 2026 - 16:28:30 EST


On Sat, Oct 31, 2026 at 09:43:44AM -0700, Joe Perches wrote:
> It's not an error in get_maintainer.pl

I'm open to suggestions.

> > +F: include/uapi/linux/tdx
>
> No file match.

Works:

./scripts/get_maintainer.pl -f include/uapi/linux/tdx-guest.h
Kiryl Shutsemau <kas@xxxxxxxxxx> (maintainer:X86 TRUST DOMAIN EXTENSIONS (TDX))
Rick Edgecombe <rick.p.edgecombe@xxxxxxxxx> (maintainer:X86 TRUST DOMAIN EXTENSIONS (TDX))
Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx> (reviewer:X86 TRUST DOMAIN EXTENSIONS (TDX))
x86@xxxxxxxxxx (open list:X86 TRUST DOMAIN EXTENSIONS (TDX))
...

because it is enough to match the beginning of the string:

$ perl -we 'print "match\n" if "include/uapi/linux/tdx-guest.h" =~ m@^include/uapi/linux/tdx@'
match

> F: include/uapi/linux/tdx*
>
> but as far as I can see there's only a single file there.

The idea is to cover everything that starts with "tdx" in that path when new
headers are added without the need to touch the file pattern.

$ touch include/uapi/linux/tdx-host.h
$ ./scripts/get_maintainer.pl -f include/uapi/linux/tdx-host.h
./scripts/get_maintainer.pl: file 'include/uapi/linux/tdx-host.h' not found in version control
Kiryl Shutsemau <kas@xxxxxxxxxx> (maintainer:X86 TRUST DOMAIN EXTENSIONS (TDX))
Rick Edgecombe <rick.p.edgecombe@xxxxxxxxx> (maintainer:X86 TRUST DOMAIN EXTENSIONS (TDX))
Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx> (reviewer:X86 TRUST DOMAIN EXTENSIONS (TDX))
x86@xxxxxxxxxx (open list:X86 TRUST DOMAIN EXTENSIONS (TDX))
...

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette