]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
checkpatch: add --strict test for precedence challenged macro arguments
authorJoe Perches <joe@perches.com>
Tue, 11 Oct 2016 20:52:11 +0000 (13:52 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 11 Oct 2016 22:06:30 +0000 (15:06 -0700)
commit9192d41a3f0b98844860f1de5b82f729bbe07c61
tree5e8f6680b5b5d6b577cd15ee9d07773825584d30
parentf59b64bffe163431b4ec61f3b00c1aeb846948f3
checkpatch: add --strict test for precedence challenged macro arguments

Add a test for macro arguents that have a non-comma leading or trailing
operator where the argument isn't parenthesized to avoid possible precedence
issues.

Link: http://lkml.kernel.org/r/47715508972f8d786f435e583ff881dbeee3a114.1473745855.git.joe@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Cc: Andy Whitcroft <apw@canonical.com>
Cc: Julia Lawall <julia.lawall@lip6.fr>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl