]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: add some --strict coding style checks
authorJoe Perches <joe@perches.com>
Fri, 23 Mar 2012 22:02:16 +0000 (15:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 23 Mar 2012 23:58:36 +0000 (16:58 -0700)
commit32d816275d59955785331ff0ee2ba59f2b362e21
tree3b9fc1b4ac53907623b73e4967fed8b1ead12a58
parent91797841ab50ad8ffbf8c8a48ade93c200cab489
checkpatch: add some --strict coding style checks

Argument alignment across multiple lines should match the open
parenthesis.

Logical continuations should be at the end of the previous line, not the
start of a new line.

These are not required by CodingStyle so make the tests active only when
using --strict.

Improved by some examples from Bruce Allen.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: "Bruce W. Allen" <bruce.w.allan@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl