summaryrefslogtreecommitdiff
path: root/scripts/headers_check.pl
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2008-12-31 09:32:30 +0100
committerSam Ravnborg <sam@ravnborg.org>2009-01-02 20:43:27 +0100
commitb67ff8ce122f3353bd741db48ce1756c12fb5f2d (patch)
treea5c5c20f34675c0635ab2fa791dd85635df45592 /scripts/headers_check.pl
parent483b41218fa9d5172312a9e294aaf78e22b266e6 (diff)
downloadlinux-rt-b67ff8ce122f3353bd741db48ce1756c12fb5f2d.tar.gz
kbuild: ignore a few files in headers_check
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>
Diffstat (limited to 'scripts/headers_check.pl')
-rw-r--r--scripts/headers_check.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/headers_check.pl b/scripts/headers_check.pl
index b62c319611a2..db30fac3083e 100644
--- a/scripts/headers_check.pl
+++ b/scripts/headers_check.pl
@@ -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) {
@@ -95,6 +98,9 @@ sub check_asm_types()
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) {