]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: improve MACRO_ARG_PRECEDENCE test
authorJoe Perches <joe@perches.com>
Tue, 11 Oct 2016 20:52:14 +0000 (13:52 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 11 Oct 2016 22:06:31 +0000 (15:06 -0700)
commit8775e308365a2f7765c17208404e2b7f7fad60b8
tree2c8d7797f4e5d5583536d9d3e05e1ae98a8bec83
parent18d7190ce6b22924fa6bb030ccfd621947b568b5
checkpatch: improve MACRO_ARG_PRECEDENCE test

It is possible for a multiple line macro definition to have a false positive
report when an argument is used on a line after a continuation \.

This line might have a leading '+' as the initial character that could be
confused by checkpatch as an operator.

Avoid the leading character on multiple line macro definitions.

Link: http://lkml.kernel.org/r/60229d13399f9b6509db5a32e30d4c16951a60cd.1473836073.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