]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: improve the embedded function name test for patch contexts
authorJoe Perches <joe@perches.com>
Mon, 8 May 2017 22:56:02 +0000 (15:56 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 9 May 2017 00:15:11 +0000 (17:15 -0700)
commite8dd4033138e537b9f78eefb4c74c7d5ff75f63f
treeee5580972183bd083a366a58552e41766a128f2a
parentd44142840af6dc555a257d5db6083553dec3ed6a
checkpatch: improve the embedded function name test for patch contexts

The current test works only for a single patch context as it is done in
the foreach ($rawlines) loop that precedes the loop where the actual
$context_function variable is used.

Move the set of $context_function into the foreach (@lines) loop where
it is useful for each patch context.

Link: http://lkml.kernel.org/r/6c675a31c74fbfad4fc45b9f462303d60ca2a283.1493486091.git.joe@perches.com
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