mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: Borislav Petkov <bp@alien8.de>
Cc: Kiryl Shutsemau <kas@kernel.org>,
	Rick Edgecombe	 <rick.p.edgecombe@intel.com>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	 Krzysztof Kozlowski	 <krzk@kernel.org>,
	Biju Das <biju.das.jz@bp.renesas.com>,
	"biju.das.au"	 <biju.das.au@gmail.com>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Jiri Slaby <jirislaby@kernel.org>,
	"linux-kernel@vger.kernel.org"	 <linux-kernel@vger.kernel.org>,
	"linux-serial@vger.kernel.org"	 <linux-serial@vger.kernel.org>,
	"linux-renesas-soc@vger.kernel.org"	
	<linux-renesas-soc@vger.kernel.org>,
	"x86@kernel.org" <x86@kernel.org>,
	 "linux-coco@lists.linux.dev"	 <linux-coco@lists.linux.dev>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
	 Au Dang <au.dang.jx@renesas.com>
Subject: Re: [PATCH -v2] MAINTAINERS: Fix Intel TDX kernel file patterns
Date: Sat, 31 Oct 2026 15:52:50 -0700	[thread overview]
Message-ID: <94f0ab99b5c9072ce7c026672f704b2987db427f.camel@perches.com> (raw)
In-Reply-To: <20261031202741.GAauZPPfNDpQLSmIZD@fat_crate.local>

On Sat, 2026-10-31 at 13:27 -0700, Borislav Petkov wrote:
> 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.

Overly broad K: pattern match in MAINTAINERS

> > > +F:	include/uapi/linux/tdx
> > 
> > No file match.
> 
> Works:
> 
> ./scripts/get_maintainer.pl -f include/uapi/linux/tdx-guest.h
> Kiryl Shutsemau <kas@kernel.org> (maintainer:X86 TRUST DOMAIN EXTENSIONS (TDX))
> Rick Edgecombe <rick.p.edgecombe@intel.com> (maintainer:X86 TRUST DOMAIN EXTENSIONS (TDX))
> Dave Hansen <dave.hansen@linux.intel.com> (reviewer:X86 TRUST DOMAIN EXTENSIONS (TDX))
> x86@kernel.org (open list:X86 TRUST DOMAIN EXTENSIONS (TDX))

Hmm, that's likely a defect in get_maintainer.pl
in sub file_match_pattern:

      sub file_match_pattern {
          my ($file, $pattern) = @_;
          if (substr($pattern, -1) eq "/") {
      	if ($file =~ m@^$pattern@) {
      	    return 1;
      	}
          } else {
      	if ($file =~ m@^$pattern@) {
      ----->				^ here - likely needs a $
      	    my $s1 = ($file =~ tr@/@@);
      	    my $s2 = ($pattern =~ tr@/@@);
      	    if ($s1 == $s2 || $pattern =~ /\(\?:/) {
      		return 1;
      	    }
      	}
          }
          return 0;
      }
      
> ...
> 
> 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.

Please add a wildcard * at the end

I'll check the rest of the MAINTAINERS file.

  reply	other threads:[~2026-10-31 22:53 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-26 11:23 [PATCH v3 0/4] Fix transmit handling on SCI/RSCI ports Biju Das
2026-10-26 11:23 ` [PATCH v3 1/4] serial: sh-sci: Drop TE disable at end of transmission on SCI Biju Das
2026-10-26 11:23 ` [PATCH v3 2/4] serial: sh-sci: Keep TX enabled on TEI while data is pending Biju Das
2026-10-26 11:23 ` [PATCH v3 3/4] serial: sh-sci: Skip TDxE clear when hardware clears it automatically Biju Das
2026-10-26 11:23 ` [PATCH v3 4/4] serial: sh-sci: Toggle TE when restoring SCSCR in console write on SCI Biju Das
2026-10-27  5:57 ` [PATCH v3 0/4] Fix transmit handling on SCI/RSCI ports Borislav Petkov
2026-10-27  7:19   ` Biju Das
2026-10-27  7:23     ` Krzysztof Kozlowski
2026-10-27  8:33       ` Biju Das
2026-10-27  9:34         ` Krzysztof Kozlowski
2026-10-27 20:54           ` Borislav Petkov
2026-10-28  9:13             ` Biju Das
2026-10-28 11:02             ` Krzysztof Kozlowski
2026-10-28 15:47               ` Borislav Petkov
2026-10-30  2:33                 ` [PATCH] MAINTAINERS: Fix Intel TDX kernel file patterns Borislav Petkov
2026-10-30 14:17                   ` Dave Hansen
2026-10-30 14:40                   ` Kiryl Shutsemau
2026-10-30 18:22                     ` Borislav Petkov
2026-10-30 17:16                   ` Joe Perches
2026-10-30 18:20                     ` Borislav Petkov
2026-10-30 19:40                       ` Joe Perches
2026-10-30 19:49                         ` Borislav Petkov
2026-10-31  3:01                   ` [PATCH -v2] " Borislav Petkov
2026-10-31 16:43                     ` Joe Perches
2026-10-31 20:27                       ` Borislav Petkov
2026-10-31 22:52                         ` Joe Perches [this message]
2026-10-31 23:59                           ` Borislav Petkov
2026-11-01  0:38                             ` Joe Perches

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=94f0ab99b5c9072ce7c026672f704b2987db427f.camel@perches.com \
    --to=joe@perches.com \
    --cc=au.dang.jx@renesas.com \
    --cc=biju.das.au@gmail.com \
    --cc=biju.das.jz@bp.renesas.com \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jirislaby@kernel.org \
    --cc=kas@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=krzk@kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=linux-coco@lists.linux.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=rick.p.edgecombe@intel.com \
    --cc=x86@kernel.org \
    /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

all inboxes | Powered by JetHome®