summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-09-11 14:24:04 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2013-09-11 15:58:49 -0700
commit58cb3cf66cc6330910316abb1dc7a7aa78917a27 (patch)
tree2be791e7173ebf0b2a629acaaee8009d6c5f7c23 /scripts
parent1b5539b1ffbdcf7113eebea7f37141d4468d9070 (diff)
downloadlinux-stable-58cb3cf66cc6330910316abb1dc7a7aa78917a27.tar.gz
linux-stable-58cb3cf66cc6330910316abb1dc7a7aa78917a27.tar.bz2
linux-stable-58cb3cf66cc6330910316abb1dc7a7aa78917a27.zip
checkpatch: fix perl version 5.12 and earlier incompatibility
A previous patch ("checkpatch: add --types option to report only specific message types") uses a perl syntax introduced in perl version 5.14. Use the backward compatible perl syntax instead. Signed-off-by: Joe Perches <joe@perches.com> Reported-by: Julia Lawall <julia.lawall@lip6.fr> 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/checkpatch.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 55277a8e1527..9ba4fc44112a 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -174,9 +174,9 @@ sub hash_save_array_words {
sub hash_show_words {
my ($hashRef, $prefix) = @_;
- if ($quiet == 0 && keys $hashRef) {
+ if ($quiet == 0 && keys %$hashRef) {
print "NOTE: $prefix message types:";
- foreach my $word (sort keys $hashRef) {
+ foreach my $word (sort keys %$hashRef) {
print " $word";
}
print "\n\n";