Commit 6088e9ffa29a92e7b80fdba44929f3225c4c0357

Authored by Peter Foley
Committed by Michal Marek
1 parent 177525d26e

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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

scripts/checkversion.pl
... ... @@ -12,6 +12,7 @@
12 12 my $debugging;
13 13  
14 14 foreach my $file (@ARGV) {
  15 + next if $file =~ "include/linux/version\.h";
15 16 # Open this file.
16 17 open( my $f, '<', $file )
17 18 or die "Can't open $file: $!\n";