diff options
author | Peter Foley <pefoley2@verizon.net> | 2011-04-26 19:07:56 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2011-04-29 09:38:55 -0400 |
commit | 6088e9ffa29a92e7b80fdba44929f3225c4c0357 (patch) | |
tree | 7da729c190e4aeae0c815de48f61c24b11dcda64 /scripts/checkversion.pl | |
parent | 177525d26e31806d71653f74bbec13574b97892c (diff) |
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-x | scripts/checkversion.pl | 1 |
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; | |||
12 | my $debugging; | 12 | my $debugging; |
13 | 13 | ||
14 | foreach my $file (@ARGV) { | 14 | foreach my $file (@ARGV) { |
15 | next if $file =~ "include/linux/version\.h"; | ||
15 | # Open this file. | 16 | # Open this file. |
16 | open( my $f, '<', $file ) | 17 | open( my $f, '<', $file ) |
17 | or die "Can't open $file: $!\n"; | 18 | or die "Can't open $file: $!\n"; |