diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-11-17 13:29:49 -0200 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2015-11-17 17:20:14 -0700 |
commit | 1ef0623371e0a39a476fb05e575089cf48178f5c (patch) | |
tree | 57d9f3913094d5ab60da57d68960b5ce915919b7 /scripts/kallsyms.c | |
parent | 8005c49d9aea74d382f474ce11afbbc7d7130bec (diff) | |
download | linux-1ef0623371e0a39a476fb05e575089cf48178f5c.tar.gz linux-1ef0623371e0a39a476fb05e575089cf48178f5c.tar.bz2 linux-1ef0623371e0a39a476fb05e575089cf48178f5c.zip |
kernel-doc: Make it compatible with Perl versions below 5.12 again
Changeset 4d73270192ec('scripts/kernel-doc: Replacing highlights
hash by an array') broke compatibility of the kernel-doc script with
older versions of perl by using "keys ARRAY" syntax with is available
only on Perl 5.12 or newer, according with:
http://perldoc.perl.org/functions/keys.html
Restore backward compatibility by replacing "foreach my $k (keys ARRAY)"
by a C-like variant: "for (my $k = 0; $k < !ARRAY; $k++)"
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'scripts/kallsyms.c')
0 files changed, 0 insertions, 0 deletions