Skip to contentSkip to conversation

get_maintainer: add email addresses from dts files

PATCH RESEND In review Joe Perches 3 participants 3 messages Feb 12, 2023 – Nov 6, 2023 GET_MAINTAINER script

lore
Share & tools
lore

Joe Perches

author maintainer
#0 lore raw

PATCH RESEND 1/1 get_maintainer: add email addresses from dts files

From: Shawn Guo <[email protected]>

MAINTAINER file will get bloated quickly if individual section entry is created for each .dts/.dtsi file. Add the email address from dts files to get_maintainer output for saving unnecessary patching on MAINTAINER file.

---

Hey Andrew. This was originally sent a year and a half ago.

Please pick this up. Thanks.

 scripts/get_maintainer.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/get_maintainer.pl +1 -1
index 2075db0c08b8..15aa8f947f4b 100755
@@ -436,7 +436,7 @@ sub maintainers_in_file {
 
     return if ($file =~ m@\bMAINTAINERS$@);
 
-    if (-f $file && ($email_file_emails || $file =~ /\.yaml$/)) {
+    if (-f $file && ($email_file_emails || $file =~ /\.(?:yaml|dtsi?)$/)) {
 	open(my $f, '<', $file)
 	    or die "$P: Can't open $file: $!\n";
 	my $text = do { local($/) ; <$f> };
#1 lore raw
Quoted 28 lines · Joe Perches

From: Shawn Guo <[email protected]>

MAINTAINER file will get bloated quickly if individual section entry is created for each .dts/.dtsi file. Add the email address from dts files to get_maintainer output for saving unnecessary patching on MAINTAINER file.

---

Hey Andrew. This was originally sent a year and a half ago.

Please pick this up. Thanks.

 scripts/get_maintainer.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/get_maintainer.pl +0 -0
index 2075db0c08b8..15aa8f947f4b 100755

scripts/get_maintainer.pl sub maintainers_in_file { · line 442

Quoted 8 lines
scripts/get_maintainer.pl +1 -1
@@ -436,7 +436,7 @@ sub maintainers_in_file {
 
     return if ($file =~ m@\bMAINTAINERS$@);
 
-    if (-f $file && ($email_file_emails || $file =~ /\.yaml$/)) {
+    if (-f $file && ($email_file_emails || $file =~ /\.(?:yaml|dtsi?)$/)) {
 	open(my $f, '<', $file)
 	    or die "$P: Can't open $file: $!\n";
 	my $text = do { local($/) ; <$f> };

This seems to have not been picked up, and would be useful for the tool to have both for the kernel itself and other projects which also use it and MAINTAINERS files. Can this please be picked up? Thanks!

Signature · 1 line
Tom
#2 lore raw
Quoted 10 lines · On Sat, 28 Oct 2023 13:46:56 -0400 Tom Rini <[email protected]> wrote:

scripts/get_maintainer.pl sub maintainers_in_file { · line 442

Quoted 6 lines
scripts/get_maintainer.pl +1 -1
-    if (-f $file && ($email_file_emails || $file =~ /\.yaml$/)) {
+    if (-f $file && ($email_file_emails || $file =~ /\.(?:yaml|dtsi?)$/)) {
 	open(my $f, '<', $file)
 	    or die "$P: Can't open $file: $!\n";
 	my $text = do { local($/) ; <$f> };

This seems to have not been picked up, and would be useful for the tool to have both for the kernel itself and other projects which also use it and MAINTAINERS files. Can this please be picked up? Thanks!

I'm not finding the original in my archives. Can we have a resend please?