]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: expand parenthesis alignment test to declarations, functions and assignments
authorJoe Perches <joe@perches.com>
Thu, 3 Apr 2014 21:49:32 +0000 (14:49 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 3 Apr 2014 23:21:15 +0000 (16:21 -0700)
commit7179acbff35892588beb9c059d6ae45a7fd4a48f
tree6c01f3e806877c640f5e2c09d9965cfd3c9d3725
parente29ee68d197a70f10d9873b17c757be9a009ed58
checkpatch: expand parenthesis alignment test to declarations, functions and assignments

Currently the parenthesis alignment test works only on misalignments of
if statements like

if (foo(bar,
baz)

Expand the test to find misalignments like:

static inline int foo(int bar,
int baz)

and

foo(bar,
baz);

and

foo = bar(baz,
qux);

Expand the $Inline keyword for __inline and __inline__ too.
Add $Inline to $Declare so it also matches "static inline <foo>".

These checks are only performed with --strict.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl