Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149537
b: refs/heads/master
c: 67b7ebe
h: refs/heads/master
i:
  149535: a56a6f9
v: v3
  • Loading branch information
Amerigo Wang authored and Sam Ravnborg committed Jun 9, 2009
1 parent d3d840c commit 9d1afb3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7211b8b9028854eee0d03ee6231440b7fb492521
refs/heads/master: 67b7ebe091cd92fd69f732da3170720d79c4e632
12 changes: 7 additions & 5 deletions trunk/scripts/headers_check.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# headers_check.pl execute a number of trivial consistency checks
#
# Usage: headers_check.pl dir [files...]
# Usage: headers_check.pl dir arch [files...]
# dir: dir to look for included files
# arch: architecture
# files: list of files to check
Expand Down Expand Up @@ -37,7 +37,7 @@
&check_include();
&check_asm_types();
&check_sizetypes();
&check_prototypes();
&check_declarations();
# Dropped for now. Too much noise &check_config();
}
close FH;
Expand All @@ -61,10 +61,12 @@ sub check_include
}
}

sub check_prototypes
sub check_declarations
{
if ($line =~ m/^\s*extern\b/) {
printf STDERR "$filename:$lineno: extern's make no sense in userspace\n";
if ($line =~m/^\s*extern\b/) {
printf STDERR "$filename:$lineno: " .
"userspace cannot call function or variable " .
"defined in the kernel\n";
}
}

Expand Down

0 comments on commit 9d1afb3

Please sign in to comment.