From: Andy Whitcroft Date: Thu, 24 Jul 2008 04:28:59 +0000 (-0700) Subject: checkpatch: types: unary -- goto introduces unary context X-Git-Tag: firefly_0821_release~19307 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6ef9b297f6e8850da3be9c9ff5f00385c0977004;p=firefly-linux-kernel-4.4.55.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 94250d1a3a47..b2b0648ee14a 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';