Skip to contentSkip to conversation

get_maintainer: add email addresses from dts files

PATCH RESEND In review Shawn Guo 1 participant 2 messages Aug 9, 2021 GET_MAINTAINER script

lore
Share & tools
lore

Shawn Guo

author
#0 lore raw

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

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.

---
 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> };
Signature · 1 line
2.17.1
author
#1 lore raw

Hi Joe,

Quoted 8 lines · Shawn Guo

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.

My understanding is that you will be the one picking this up. Otherwise, please let me know whom I should send this to. Thanks!

Shawn

Quoted 20 lines
---
 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> };
Signature · 1 line
2.17.1