]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit55b924e0cbbfd50b998b2d9119dc50540e29d80d
treeda5cb9f363484fcf343c72b7b48ada5191b97cf0
parent9cbdaf78b2aa431f889f2d9a170b08c1badf2137
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