[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1376145607.2083.15.camel@joe-AO722>
Date: Sat, 10 Aug 2013 07:40:07 -0700
From: Joe Perches <joe@...ches.com>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Julia Lawall <julia.lawall@...6.fr>,
LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH next] checkpatch: Fix perl version 5.12 and earlier
incompatibility
commit 203489a33 ("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.
Reported-by: Julia Lawall <julia.lawall@...6.fr>
Signed-off-by: Joe Perches <joe@...ches.com>
---
scripts/checkpatch.pl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 3ba2db6..51ee331 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";
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists