Skip to content

Commit

Permalink
kbuild: ignore a few files in headers_check
Browse files Browse the repository at this point in the history
The new check for asm/types.h and linux/types.h had
a few false positives.

o We cannot let linux/types.h include linux/types.h
o The int-ll64.h and int-ll64.h define the types
  and are included by linux/types.h

Handle this by hardcoding the filenames in the headers_check script.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
  • Loading branch information
Sam Ravnborg committed Jan 2, 2009
1 parent 483b412 commit b67ff8c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/headers_check.pl
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ sub check_config
my $linux_asm_types;
sub check_asm_types()
{
if ($filename =~ /types.h|int-l64.h|int-ll64.h/o) {
return;
}
if ($lineno == 1) {
$linux_asm_types = 0;
} elsif ($linux_asm_types >= 1) {
Expand All @@ -95,6 +98,9 @@ ()
my $linux_types;
sub check_sizetypes
{
if ($filename =~ /types.h|int-l64.h|int-ll64.h/o) {
return;
}
if ($lineno == 1) {
$linux_types = 0;
} elsif ($linux_types >= 1) {
Expand Down

0 comments on commit b67ff8c

Please sign in to comment.