summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-06-25 18:01:55 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-06-25 20:00:39 -0400
commitce8155f7a3d59ce868ea16d8891edda4d865e873 (patch)
treedea5d5545a19ee8499d1c3727ec7d9c6712f3a6a /scripts
parent364f68dc996a63b7e54dd8b9624f64a76f43dd12 (diff)
get_maintainer: fix perl 5.22/5.24 deprecated/incompatible "\C" use
Perl 5.22 emits a deprecated message when "\C" is used in a regex. Perl 5.24 will disallow it altogether. Fix it by using [A-Z] instead of \C. Signed-off-by: Joe Perches <joe@perches.com> Reported-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu> Tested-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/get_maintainer.pl24
1 files changed, 12 insertions, 12 deletions
diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl
index cffa658d2597..98bae869f6d0 100755
--- a/scripts/get_maintainer.pl
+++ b/scripts/get_maintainer.pl
@@ -305,7 +305,7 @@ open (my $maint, '<', "${lk_path}MAINTAINERS")
305while (<$maint>) { 305while (<$maint>) {
306 my $line = $_; 306 my $line = $_;
307 307
308 if ($line =~ m/^(\C):\s*(.*)/) { 308 if ($line =~ m/^([A-Z]):\s*(.*)/) {
309 my $type = $1; 309 my $type = $1;
310 my $value = $2; 310 my $value = $2;
311 311
@@ -550,7 +550,7 @@ sub range_is_maintained {
550 550
551 for (my $i = $start; $i < $end; $i++) { 551 for (my $i = $start; $i < $end; $i++) {
552 my $line = $typevalue[$i]; 552 my $line = $typevalue[$i];
553 if ($line =~ m/^(\C):\s*(.*)/) { 553 if ($line =~ m/^([A-Z]):\s*(.*)/) {
554 my $type = $1; 554 my $type = $1;
555 my $value = $2; 555 my $value = $2;
556 if ($type eq 'S') { 556 if ($type eq 'S') {
@@ -568,7 +568,7 @@ sub range_has_maintainer {
568 568
569 for (my $i = $start; $i < $end; $i++) { 569 for (my $i = $start; $i < $end; $i++) {
570 my $line = $typevalue[$i]; 570 my $line = $typevalue[$i];
571 if ($line =~ m/^(\C):\s*(.*)/) { 571 if ($line =~ m/^([A-Z]):\s*(.*)/) {
572 my $type = $1; 572 my $type = $1;
573 my $value = $2; 573 my $value = $2;
574 if ($type eq 'M') { 574 if ($type eq 'M') {
@@ -617,7 +617,7 @@ sub get_maintainers {
617 617
618 for ($i = $start; $i < $end; $i++) { 618 for ($i = $start; $i < $end; $i++) {
619 my $line = $typevalue[$i]; 619 my $line = $typevalue[$i];
620 if ($line =~ m/^(\C):\s*(.*)/) { 620 if ($line =~ m/^([A-Z]):\s*(.*)/) {
621 my $type = $1; 621 my $type = $1;
622 my $value = $2; 622 my $value = $2;
623 if ($type eq 'X') { 623 if ($type eq 'X') {
@@ -632,7 +632,7 @@ sub get_maintainers {
632 if (!$exclude) { 632 if (!$exclude) {
633 for ($i = $start; $i < $end; $i++) { 633 for ($i = $start; $i < $end; $i++) {
634 my $line = $typevalue[$i]; 634 my $line = $typevalue[$i];
635 if ($line =~ m/^(\C):\s*(.*)/) { 635 if ($line =~ m/^([A-Z]):\s*(.*)/) {
636 my $type = $1; 636 my $type = $1;
637 my $value = $2; 637 my $value = $2;
638 if ($type eq 'F') { 638 if ($type eq 'F') {
@@ -933,7 +933,7 @@ sub find_first_section {
933 933
934 while ($index < @typevalue) { 934 while ($index < @typevalue) {
935 my $tv = $typevalue[$index]; 935 my $tv = $typevalue[$index];
936 if (($tv =~ m/^(\C):\s*(.*)/)) { 936 if (($tv =~ m/^([A-Z]):\s*(.*)/)) {
937 last; 937 last;
938 } 938 }
939 $index++; 939 $index++;
@@ -947,7 +947,7 @@ sub find_starting_index {
947 947
948 while ($index > 0) { 948 while ($index > 0) {
949 my $tv = $typevalue[$index]; 949 my $tv = $typevalue[$index];
950 if (!($tv =~ m/^(\C):\s*(.*)/)) { 950 if (!($tv =~ m/^([A-Z]):\s*(.*)/)) {
951 last; 951 last;
952 } 952 }
953 $index--; 953 $index--;
@@ -961,7 +961,7 @@ sub find_ending_index {
961 961
962 while ($index < @typevalue) { 962 while ($index < @typevalue) {
963 my $tv = $typevalue[$index]; 963 my $tv = $typevalue[$index];
964 if (!($tv =~ m/^(\C):\s*(.*)/)) { 964 if (!($tv =~ m/^([A-Z]):\s*(.*)/)) {
965 last; 965 last;
966 } 966 }
967 $index++; 967 $index++;
@@ -987,7 +987,7 @@ sub get_maintainer_role {
987 987
988 for ($i = $start + 1; $i < $end; $i++) { 988 for ($i = $start + 1; $i < $end; $i++) {
989 my $tv = $typevalue[$i]; 989 my $tv = $typevalue[$i];
990 if ($tv =~ m/^(\C):\s*(.*)/) { 990 if ($tv =~ m/^([A-Z]):\s*(.*)/) {
991 my $ptype = $1; 991 my $ptype = $1;
992 my $pvalue = $2; 992 my $pvalue = $2;
993 if ($ptype eq "S") { 993 if ($ptype eq "S") {
@@ -1046,7 +1046,7 @@ sub add_categories {
1046 1046
1047 for ($i = $start + 1; $i < $end; $i++) { 1047 for ($i = $start + 1; $i < $end; $i++) {
1048 my $tv = $typevalue[$i]; 1048 my $tv = $typevalue[$i];
1049 if ($tv =~ m/^(\C):\s*(.*)/) { 1049 if ($tv =~ m/^([A-Z]):\s*(.*)/) {
1050 my $ptype = $1; 1050 my $ptype = $1;
1051 my $pvalue = $2; 1051 my $pvalue = $2;
1052 if ($ptype eq "L") { 1052 if ($ptype eq "L") {
@@ -1088,7 +1088,7 @@ sub add_categories {
1088 if ($name eq "") { 1088 if ($name eq "") {
1089 if ($i > 0) { 1089 if ($i > 0) {
1090 my $tv = $typevalue[$i - 1]; 1090 my $tv = $typevalue[$i - 1];
1091 if ($tv =~ m/^(\C):\s*(.*)/) { 1091 if ($tv =~ m/^([A-Z]):\s*(.*)/) {
1092 if ($1 eq "P") { 1092 if ($1 eq "P") {
1093 $name = $2; 1093 $name = $2;
1094 $pvalue = format_email($name, $address, $email_usename); 1094 $pvalue = format_email($name, $address, $email_usename);
@@ -1105,7 +1105,7 @@ sub add_categories {
1105 if ($name eq "") { 1105 if ($name eq "") {
1106 if ($i > 0) { 1106 if ($i > 0) {
1107 my $tv = $typevalue[$i - 1]; 1107 my $tv = $typevalue[$i - 1];
1108 if ($tv =~ m/^(\C):\s*(.*)/) { 1108 if ($tv =~ m/^([A-Z]):\s*(.*)/) {
1109 if ($1 eq "P") { 1109 if ($1 eq "P") {
1110 $name = $2; 1110 $name = $2;
1111 $pvalue = format_email($name, $address, $email_usename); 1111 $pvalue = format_email($name, $address, $email_usename);