summaryrefslogtreecommitdiff
path: root/scripts/checkversion.pl
diff options
context:
space:
mode:
authorPeter Foley <pefoley2@verizon.net>2011-04-27 03:07:56 +0400
committerMichal Marek <mmarek@suse.cz>2011-04-29 17:38:55 +0400
commit6088e9ffa29a92e7b80fdba44929f3225c4c0357 (patch)
tree7da729c190e4aeae0c815de48f61c24b11dcda64 /scripts/checkversion.pl
parent177525d26e31806d71653f74bbec13574b97892c (diff)
downloadlinux-6088e9ffa29a92e7b80fdba44929f3225c4c0357.tar.xz
kbuild: don't warn about include/linux/version.h not including itself
This patch makes checkversion.pl not warn that include/linux/version.h dosen't include itself. Signed-off-by: Peter Foley <pefoley2@verizon.net> [mmarek: simplified to use 'next if' syntax] Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/checkversion.pl')
-rwxr-xr-xscripts/checkversion.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/checkversion.pl b/scripts/checkversion.pl
index b444e89a0095..5e490a8ceca5 100755
--- a/scripts/checkversion.pl
+++ b/scripts/checkversion.pl
@@ -12,6 +12,7 @@ $| = 1;
my $debugging;
foreach my $file (@ARGV) {
+ next if $file =~ "include/linux/version\.h";
# Open this file.
open( my $f, '<', $file )
or die "Can't open $file: $!\n";