Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 114773
b: refs/heads/master
c: 0776e59
h: refs/heads/master
i:
  114771: 6114881
v: v3
  • Loading branch information
Andy Whitcroft authored and Linus Torvalds committed Oct 16, 2008
1 parent 99d21be commit 9bf8dbd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 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: 5fdd23acf9cd7f658746b119436ed1d787326c46
refs/heads/master: 0776e594606e32a045e0a99bb919b2280b945495
24 changes: 18 additions & 6 deletions trunk/scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -913,12 +913,22 @@ sub annotate_values {
sub possible {
my ($possible, $line) = @_;

print "CHECK<$possible> ($line)\n" if ($dbg_possible > 1);
if ($possible !~ /^(?:$Modifier|$Storage|$Type|DEFINE_\S+)$/ &&
$possible ne 'goto' && $possible ne 'return' &&
$possible ne 'case' && $possible ne 'else' &&
$possible ne 'asm' && $possible ne '__asm__' &&
$possible !~ /^(typedef|struct|enum)\b/) {
print "CHECK<$possible> ($line)\n" if ($dbg_possible > 2);
if ($possible !~ /(?:
^(?:
$Modifier|
$Storage|
$Type|
DEFINE_\S+|
goto|
return|
case|
else|
asm|__asm__|
do
)$|
^(?:typedef|struct|enum)\b
)/x) {
# Check for modifiers.
$possible =~ s/\s*$Storage\s*//g;
$possible =~ s/\s*$Sparse\s*//g;
Expand All @@ -936,6 +946,8 @@ sub possible {
push(@typeList, $possible);
}
build_types();
} else {
warn "NOTPOSS: $possible ($line)\n" if ($dbg_possible > 1);
}
}

Expand Down

0 comments on commit 9bf8dbd

Please sign in to comment.