]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: exclude sizeof sub-expressions from MACRO_ARG_REUSE
authorBrendan Jackman <brendan.jackman@bluwireless.co.uk>
Wed, 25 Sep 2019 23:46:41 +0000 (16:46 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 26 Sep 2019 00:51:39 +0000 (17:51 -0700)
commitf24f77426c61cc65129f52091409ecb27bcfac24
treeb49241799c5201d2668f8c5223fa399cba608b05
parent33171114f573bd849179df9eb1de4f5228041f03
checkpatch: exclude sizeof sub-expressions from MACRO_ARG_REUSE

The arguments of sizeof are not evaluated so arguments are safe to re-use
in that context.  Excluding sizeof subexpressions means macros like
ARRAY_SIZE can pass checkpatch.

Link: http://lkml.kernel.org/r/20190806070833.24423-1-brendan.jackman@bluwireless.co.uk
Signed-off-by: Brendan Jackman <brendan.jackman@bluwireless.co.uk>
Acked-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