From: Andy Whitcroft Date: Thu, 24 Jul 2008 04:28:59 +0000 (-0700) Subject: checkpatch: types: unary -- goto introduces unary context X-Git-Tag: v2.6.27-rc1~712 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6ef9b297f6e8850da3be9c9ff5f00385c0977004;p=linux-2.6-omap-h63xx.git checkpatch: types: unary -- goto introduces unary context When we see a goto we enter unary context. For example: goto *h; Signed-off-by: Andy Whitcroft Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 94250d1a3a4..b2b0648ee14 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -780,7 +780,7 @@ sub annotate_values { $av_pending = 'N'; $type = 'N'; - } elsif ($cur =~/^(return|case|else)/o) { + } elsif ($cur =~/^(return|case|else|goto)/o) { print "KEYWORD($1)\n" if ($dbg_values > 1); $type = 'N';