aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2008-12-31 03:32:30 -0500
committerSam Ravnborg <sam@ravnborg.org>2009-01-02 14:43:27 -0500
commitb67ff8ce122f3353bd741db48ce1756c12fb5f2d (patch)
treea5c5c20f34675c0635ab2fa791dd85635df45592
parent483b41218fa9d5172312a9e294aaf78e22b266e6 (diff)
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>
-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
78my $linux_asm_types; 78my $linux_asm_types;
79sub check_asm_types() 79sub check_asm_types()
80{ 80{
81 if ($filename =~ /types.h|int-l64.h|int-ll64.h/o) {
82 return;
83 }
81 if ($lineno == 1) { 84 if ($lineno == 1) {
82 $linux_asm_types = 0; 85 $linux_asm_types = 0;
83 } elsif ($linux_asm_types >= 1) { 86 } elsif ($linux_asm_types >= 1) {
@@ -95,6 +98,9 @@ sub check_asm_types()
95my $linux_types; 98my $linux_types;
96sub check_sizetypes 99sub check_sizetypes
97{ 100{
101 if ($filename =~ /types.h|int-l64.h|int-ll64.h/o) {
102 return;
103 }
98 if ($lineno == 1) { 104 if ($lineno == 1) {
99 $linux_types = 0; 105 $linux_types = 0;
100 } elsif ($linux_types >= 1) { 106 } elsif ($linux_types >= 1) {