]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
x86, cpufeature: Remove stray %s, add -w to mkcapflags.pl
authorH. Peter Anvin <hpa@zytor.com>
Tue, 26 Jun 2012 14:58:23 +0000 (07:58 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 26 Jun 2012 15:02:48 +0000 (08:02 -0700)
There was a stray %s left from testing, remove it.

Add -w to the #! line (which is parsed by Perl even if the Perl
interpreter is invoked explicitly on the command line) to catch these
kinds of errors in the future.

Reported-by: Jean Delvare <khali@linux-fr.org>
Link: http://lkml.kernel.org/r/20120626143246.0c9bf301@endymion.delvare
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/cpu/mkcapflags.pl

index 0c5b54919c7bbf2f196a9a1c7966c2d50fa3a0a7..c7b3fe2d72e0f71b94577fde23622a8797eca941 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/perl -w
 #
 # Generate the x86_cap_flags[] array from include/asm-x86/cpufeature.h
 #
@@ -29,7 +29,7 @@ while (defined($line = <IN>)) {
                        print STDERR "$in: duplicate feature name: $feature\n";
                        $err++;
                }
-               printf OUT "\t%-32s = \"%s\",%s\n", "[$macro]", $feature;
+               printf OUT "\t%-32s = \"%s\",\n", "[$macro]", $feature;
        }
 }
 print OUT "};\n";