* [PATCH next] checkpatch: Fix perl version 5.12 and earlier incompatibility
@ 2013-08-10 14:40 Joe Perches
0 siblings, 0 replies; only message in thread
From: Joe Perches @ 2013-08-10 14:40 UTC (permalink / raw)
To: Andrew Morton; +Cc: Julia Lawall, LKML
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@lip6.fr>
Signed-off-by: Joe Perches <joe@perches.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";
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-08-10 14:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-10 14:40 [PATCH next] checkpatch: Fix perl version 5.12 and earlier incompatibility Joe Perches
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®