checkpatch: do is not a possible type
authorAndy Whitcroft <apw@shadowen.org>
Thu, 16 Oct 2008 05:02:29 +0000 (22:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Oct 2008 18:21:36 +0000 (11:21 -0700)
commit0776e594606e32a045e0a99bb919b2280b945495
treeda5cb9f363484fcf343c72b7b48ada5191b97cf0
parent5fdd23acf9cd7f658746b119436ed1d787326c46
checkpatch: do is not a possible type

A do without braces '{' may trigger a false possible type 'do' and then
this may be interpreted as an external definition of foo():

do
foo();
while (bar);

Add do to the type exclusions.  Fix up tests so we can check for them.

Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl