Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125430
b: refs/heads/master
c: 46b8af5
h: refs/heads/master
v: v3
  • Loading branch information
Mike Frysinger authored and Sam Ravnborg committed Jan 2, 2009
1 parent ed09cb6 commit 95c5010
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 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: 7826005e5a53645d7aab7c13eda76126eadebf0b
refs/heads/master: 46b8af50ba5c072b74740c5fa8ba08e6eabb22f8
12 changes: 11 additions & 1 deletion trunk/scripts/headers_check.pl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
# Only include files located in asm* and linux* are checked.
# The rest are assumed to be system include files.
#
# 2) TODO: check for leaked CONFIG_ symbols
# 2) It is checked that prototypes does not use "extern"
#
# 3) TODO: check for leaked CONFIG_ symbols

use strict;

Expand All @@ -33,6 +35,7 @@
while ($line = <FH>) {
$lineno++;
check_include();
check_prototypes();
}
close FH;
}
Expand All @@ -54,3 +57,10 @@ sub check_include
}
}
}

sub check_prototypes
{
if ($line =~ m/^\s*extern\b/) {
printf STDERR "$filename:$lineno: extern's make no sense in userspace\n";
}
}

0 comments on commit 95c5010

Please sign in to comment.