All of lore.kernel.org
 help / color / mirror / Atom feed
From: Agatha Isabelle Moreira <code@agatha.dev>
To: Manuel Ebner <manuelebner@mailbox.org>
Cc: joe@perches.com, linux-kernel@vger.kernel.org,
	linux-kernel-mentees@lists.linux.dev,
	kernelnewbies@kernelnewbies.org
Subject: Re: [PATCH] get_maintainer: add recipients to output of script
Date: Mon, 8 Jun 2026 16:32:20 -0300	[thread overview]
Message-ID: <aicTcM1FhL8nT1mx@guidai> (raw)
In-Reply-To: <20260608163411.70226-2-manuelebner@mailbox.org>

On Mon, Jun 08, 2026 at 06:34:12PM +0200, Manuel Ebner wrote:
> Add all people tagged in all the mentioned commits to the output of this script.
> This is done to give credit to people who inspired the current commit or to get
> feedback from people who know the subject.

Some things to notice:
1) Cc someone in the message is not the way of giving credit, the tags
are already for that.

2) The way get_maintainer.pl works today already copies the relevant
people, you should state why your addition matters to that.

3) You are supposed to send the message again with `[PATCH v2]` in the
subject if you want your message to be tracked as a new version of the
patch. In that case you must include a changelog stating your changes.

See: https://docs.kernel.org/process/submitting-patches.html

4) I'm not sure why people in the mentioned patches should necessarily
be copied in a patch. I mean, if they are active contributors to that
part of the code they are likely already included in the regular
`get_maintainer.pl` output, they will either be listed in the
`MAINTAINERS` file or at least be fetched through git.

Keep in mind that `get_maintainer.pl` is not intended to be used to spam
people, but to get where to send your patches and who to copy. 

> index 16b80a700d4a..8c44b14391f9 100755
> --- a/scripts/get_maintainer.pl
> +++ b/scripts/get_maintainer.pl
> @@ -30,6 +30,7 @@ my $email_usename = 1;
>  my $email_maintainer = 1;
>  my $email_reviewer = 1;
>  my $email_fixes = 1;
> +my $email_mentioned = 0;
>  my $email_list = 1;
>  my $email_moderated_list = 1;
>  my $email_subscriber_list = 0;
> @@ -78,6 +79,7 @@ my $exit = 0;
>  
>  my @files = ();
>  my @fixes = ();			# If a patch description includes Fixes: lines
> +my @mentioned = ();		# If a patch description mentiones a patch
>  my @range = ();
>  my @keyword_tvi = ();
>  my @file_emails = ();
> @@ -264,6 +266,7 @@ if (!GetOptions(
>  		'n!' => \$email_usename,
>  		'l!' => \$email_list,
>  		'fixes!' => \$email_fixes,
> +		'mentioned!' => \$email_mentioned,
>  		'moderated!' => \$email_moderated_list,
>  		's!' => \$email_subscriber_list,
>  		'multiline!' => \$output_multiline,
> @@ -606,6 +609,8 @@ foreach my $file (@ARGV) {
>  		push(@files, $filename2);
>  	    } elsif (m/^Fixes:\s+([0-9a-fA-F]{6,40})/) {
>  		push(@fixes, $1) if ($email_fixes);
> +	    } elsif (m/\s+([0-9a-fA-F]{6,40})/) {
> +		push(@mentioned, $1) if ($email_mentioned);

If you still wanna submit this patch anyway, besides explaining the
reason to be accepted, I think you should check if your regex isn't
matching anything other than commit messages. For instance, I can easily
imagine this regex matching a regular hash that's not a commit id or a
memory address.

Imagine you have a kernel panic log in the commit message, for instance.
I think your script would likely misinterpret register values as commit
messages.

Really need to work on that. Though I would recommend that you discuss
with the list first and try to get people to understand why this might
be important first so you don't waste time fixing something that might
not get accepted. Unless you wanna use it for yourself locally.

-- 
Agatha Isabelle Moreira
C Developer | agatha.dev
Sourcehut: https://sr.ht/~devlavender/

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

WARNING: multiple messages have this Message-ID (diff)
From: Agatha Isabelle Moreira <code@agatha.dev>
To: Manuel Ebner <manuelebner@mailbox.org>
Cc: joe@perches.com, kernelnewbies@kernelnewbies.org,
	 linux-kernel-mentees@lists.linux.dev,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] get_maintainer: add recipients to output of script
Date: Mon, 8 Jun 2026 16:32:20 -0300	[thread overview]
Message-ID: <aicTcM1FhL8nT1mx@guidai> (raw)
In-Reply-To: <20260608163411.70226-2-manuelebner@mailbox.org>

On Mon, Jun 08, 2026 at 06:34:12PM +0200, Manuel Ebner wrote:
> Add all people tagged in all the mentioned commits to the output of this script.
> This is done to give credit to people who inspired the current commit or to get
> feedback from people who know the subject.

Some things to notice:
1) Cc someone in the message is not the way of giving credit, the tags
are already for that.

2) The way get_maintainer.pl works today already copies the relevant
people, you should state why your addition matters to that.

3) You are supposed to send the message again with `[PATCH v2]` in the
subject if you want your message to be tracked as a new version of the
patch. In that case you must include a changelog stating your changes.

See: https://docs.kernel.org/process/submitting-patches.html

4) I'm not sure why people in the mentioned patches should necessarily
be copied in a patch. I mean, if they are active contributors to that
part of the code they are likely already included in the regular
`get_maintainer.pl` output, they will either be listed in the
`MAINTAINERS` file or at least be fetched through git.

Keep in mind that `get_maintainer.pl` is not intended to be used to spam
people, but to get where to send your patches and who to copy. 

> index 16b80a700d4a..8c44b14391f9 100755
> --- a/scripts/get_maintainer.pl
> +++ b/scripts/get_maintainer.pl
> @@ -30,6 +30,7 @@ my $email_usename = 1;
>  my $email_maintainer = 1;
>  my $email_reviewer = 1;
>  my $email_fixes = 1;
> +my $email_mentioned = 0;
>  my $email_list = 1;
>  my $email_moderated_list = 1;
>  my $email_subscriber_list = 0;
> @@ -78,6 +79,7 @@ my $exit = 0;
>  
>  my @files = ();
>  my @fixes = ();			# If a patch description includes Fixes: lines
> +my @mentioned = ();		# If a patch description mentiones a patch
>  my @range = ();
>  my @keyword_tvi = ();
>  my @file_emails = ();
> @@ -264,6 +266,7 @@ if (!GetOptions(
>  		'n!' => \$email_usename,
>  		'l!' => \$email_list,
>  		'fixes!' => \$email_fixes,
> +		'mentioned!' => \$email_mentioned,
>  		'moderated!' => \$email_moderated_list,
>  		's!' => \$email_subscriber_list,
>  		'multiline!' => \$output_multiline,
> @@ -606,6 +609,8 @@ foreach my $file (@ARGV) {
>  		push(@files, $filename2);
>  	    } elsif (m/^Fixes:\s+([0-9a-fA-F]{6,40})/) {
>  		push(@fixes, $1) if ($email_fixes);
> +	    } elsif (m/\s+([0-9a-fA-F]{6,40})/) {
> +		push(@mentioned, $1) if ($email_mentioned);

If you still wanna submit this patch anyway, besides explaining the
reason to be accepted, I think you should check if your regex isn't
matching anything other than commit messages. For instance, I can easily
imagine this regex matching a regular hash that's not a commit id or a
memory address.

Imagine you have a kernel panic log in the commit message, for instance.
I think your script would likely misinterpret register values as commit
messages.

Really need to work on that. Though I would recommend that you discuss
with the list first and try to get people to understand why this might
be important first so you don't waste time fixing something that might
not get accepted. Unless you wanna use it for yourself locally.

-- 
Agatha Isabelle Moreira
C Developer | agatha.dev
Sourcehut: https://sr.ht/~devlavender/

  reply	other threads:[~2026-06-08 19:32 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-08 15:22 [PATCH] get_maintainer: add recipients to output of script Manuel Ebner
2026-06-08 15:29 ` Joe Perches
2026-06-08 15:29   ` Joe Perches
2026-06-08 15:46   ` Manuel Ebner
2026-06-08 15:52     ` Joe Perches
2026-06-08 15:52       ` Joe Perches
2026-06-08 15:56       ` Manuel Ebner
2026-06-08 16:00         ` Joe Perches
2026-06-08 16:00           ` Joe Perches
2026-06-08 16:50       ` Agatha Isabelle Moreira
2026-06-08 16:50         ` Agatha Isabelle Moreira
2026-06-08 16:34   ` Manuel Ebner
2026-06-08 19:32     ` Agatha Isabelle Moreira [this message]
2026-06-08 19:32       ` Agatha Isabelle Moreira
2026-06-10  7:49       ` Manuel Ebner

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=aicTcM1FhL8nT1mx@guidai \
    --to=code@agatha.dev \
    --cc=joe@perches.com \
    --cc=kernelnewbies@kernelnewbies.org \
    --cc=linux-kernel-mentees@lists.linux.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=manuelebner@mailbox.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 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.