]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commit5207649b7b1d2b1e1f8c97df91debfaa8de37669
tree2c8d7797f4e5d5583536d9d3e05e1ae98a8bec83
parent9192d41a3f0b98844860f1de5b82f729bbe07c61
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