summaryrefslogtreecommitdiffstats
path: root/kernel/pid_namespace.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2017-07-11 00:52:19 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2017-07-11 01:32:35 +0200
commita0ad75964e58cd7d9b6910e2bbb8a7e8656c0f51 (patch)
treed8fa1c454226dfb8dc05502e8706912369611ed1 /kernel/pid_namespace.c
parentcheckpatch: remove false warning for commit reference (diff)
downloadlinux-a0ad75964e58cd7d9b6910e2bbb8a7e8656c0f51.tar.xz
linux-a0ad75964e58cd7d9b6910e2bbb8a7e8656c0f51.zip
checkpatch: improve tests for multiple line function definitions
Add a block that identifies multiple line function definitions. Save the function name into $context_function to improve the embedded function name test. Look for misplaced open brace on the function definition. Emit an OPEN_BRACE error when the function definition is similar to void foo(int arg1, int arg2) { Miscellanea: o Remove the $realfile test in function declaration w/o named arguments test o Comment the function declaration w/o named arguments test Link: http://lkml.kernel.org/r/de620ed6ebab75fdfa323741ada2134a0f545892.1496835238.git.joe@perches.com Signed-off-by: Joe Perches <joe@perches.com> Tested-by: David Kershner <david.kershner@unisys.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/pid_namespace.c')
0 files changed, 0 insertions, 0 deletions