kbuild: don't warn about include/linux/version.h not including itself
authorPeter Foley <pefoley2@verizon.net>
Tue, 26 Apr 2011 23:07:56 +0000 (19:07 -0400)
committerMichal Marek <mmarek@suse.cz>
Fri, 29 Apr 2011 13:38:55 +0000 (15:38 +0200)
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>
scripts/checkversion.pl

index b444e89a0095dc16d207fb23a7600a148c67834b..5e490a8ceca5582e3003890cf34a21c33447969f 100755 (executable)
@@ -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";