diff options
| author | Mark Brown <broonie@kernel.org> | 2017-08-25 09:44:05 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2017-08-25 09:44:05 -0400 |
| commit | b7e2672d1a23a53bd2657704bf94a8dc8880cc49 (patch) | |
| tree | 7e315f84913b6cd896fda558724961b39a735587 /scripts | |
| parent | c0d1cb8366bab9963822c27b0d40cb8b32928cdc (diff) | |
| parent | 9ce76511b67be8fbcdff36b7e1662e3887bb7377 (diff) | |
Merge tag 'sound-4.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound into asoc-rt5677
sound fixes for 4.13-rc7
We're keeping in a good shape, this batch contains just a few small
fixes (a regression fix for ASoC rt5677 codec, NULL dereference and
error-path fixes in firewire, and a corner-case ioctl error fix for
user TLV), as well as usual quirks for USB-audio and HD-audio.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/dtc/dtx_diff | 2 | ||||
| -rw-r--r-- | scripts/parse-maintainers.pl | 77 |
2 files changed, 78 insertions, 1 deletions
diff --git a/scripts/dtc/dtx_diff b/scripts/dtc/dtx_diff index fb86f3899e16..f9a3d8d23c64 100755 --- a/scripts/dtc/dtx_diff +++ b/scripts/dtc/dtx_diff | |||
| @@ -321,7 +321,7 @@ fi | |||
| 321 | cpp_flags="\ | 321 | cpp_flags="\ |
| 322 | -nostdinc \ | 322 | -nostdinc \ |
| 323 | -I${srctree}/arch/${ARCH}/boot/dts \ | 323 | -I${srctree}/arch/${ARCH}/boot/dts \ |
| 324 | -I${srctree}/arch/${ARCH}/boot/dts/include \ | 324 | -I${srctree}/scripts/dtc/include-prefixes \ |
| 325 | -I${srctree}/drivers/of/testcase-data \ | 325 | -I${srctree}/drivers/of/testcase-data \ |
| 326 | -undef -D__DTS__" | 326 | -undef -D__DTS__" |
| 327 | 327 | ||
diff --git a/scripts/parse-maintainers.pl b/scripts/parse-maintainers.pl new file mode 100644 index 000000000000..a0fe34349b24 --- /dev/null +++ b/scripts/parse-maintainers.pl | |||
| @@ -0,0 +1,77 @@ | |||
| 1 | #!/usr/bin/perl -w | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | |||
| 5 | my %map; | ||
| 6 | |||
| 7 | # sort comparison function | ||
| 8 | sub by_category($$) { | ||
| 9 | my ($a, $b) = @_; | ||
| 10 | |||
| 11 | $a = uc $a; | ||
| 12 | $b = uc $b; | ||
| 13 | |||
| 14 | # This always sorts last | ||
| 15 | $a =~ s/THE REST/ZZZZZZ/g; | ||
| 16 | $b =~ s/THE REST/ZZZZZZ/g; | ||
| 17 | |||
| 18 | $a cmp $b; | ||
| 19 | } | ||
| 20 | |||
| 21 | sub alpha_output { | ||
| 22 | my $key; | ||
| 23 | my $sort_method = \&by_category; | ||
| 24 | my $sep = ""; | ||
| 25 | |||
| 26 | foreach $key (sort $sort_method keys %map) { | ||
| 27 | if ($key ne " ") { | ||
| 28 | print $sep . $key . "\n"; | ||
| 29 | $sep = "\n"; | ||
| 30 | } | ||
| 31 | print $map{$key}; | ||
| 32 | } | ||
| 33 | } | ||
| 34 | |||
| 35 | sub trim { | ||
| 36 | my $s = shift; | ||
| 37 | $s =~ s/\s+$//; | ||
| 38 | $s =~ s/^\s+//; | ||
| 39 | return $s; | ||
| 40 | } | ||
| 41 | |||
| 42 | sub file_input { | ||
| 43 | my $lastline = ""; | ||
| 44 | my $case = " "; | ||
| 45 | $map{$case} = ""; | ||
| 46 | |||
| 47 | while (<>) { | ||
| 48 | my $line = $_; | ||
| 49 | |||
| 50 | # Pattern line? | ||
| 51 | if ($line =~ m/^([A-Z]):\s*(.*)/) { | ||
| 52 | $line = $1 . ":\t" . trim($2) . "\n"; | ||
| 53 | if ($lastline eq "") { | ||
| 54 | $map{$case} = $map{$case} . $line; | ||
| 55 | next; | ||
| 56 | } | ||
| 57 | $case = trim($lastline); | ||
| 58 | exists $map{$case} and die "Header '$case' already exists"; | ||
| 59 | $map{$case} = $line; | ||
| 60 | $lastline = ""; | ||
| 61 | next; | ||
| 62 | } | ||
| 63 | |||
| 64 | if ($case eq " ") { | ||
| 65 | $map{$case} = $map{$case} . $lastline; | ||
| 66 | $lastline = $line; | ||
| 67 | next; | ||
| 68 | } | ||
| 69 | trim($lastline) eq "" or die ("Odd non-pattern line '$lastline' for '$case'"); | ||
| 70 | $lastline = $line; | ||
| 71 | } | ||
| 72 | $map{$case} = $map{$case} . $lastline; | ||
| 73 | } | ||
| 74 | |||
| 75 | &file_input; | ||
| 76 | &alpha_output; | ||
| 77 | exit(0); | ||
