projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
beae633
)
checkpatch: types: unary -- goto introduces unary context
author
Andy Whitcroft
<apw@shadowen.org>
Thu, 24 Jul 2008 04:28:59 +0000
(21:28 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Thu, 24 Jul 2008 17:47:25 +0000
(10:47 -0700)
When we see a goto we enter unary context. For example:
goto *h;
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
patch
|
blob
|
history
diff --git
a/scripts/checkpatch.pl
b/scripts/checkpatch.pl
index 94250d1a3a471ad5721c84dab4bd1b67370a02df..b2b0648ee14a48f43a0172767c14f8340b6ff3e0 100755
(executable)
--- 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';