]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: exclude four preprocessor sub-expressions from MACRO_ARG_REUSE
authorVincent Mailhol <mailhol.vincent@wanadoo.fr>
Fri, 7 May 2021 01:03:58 +0000 (18:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 7 May 2021 02:24:13 +0000 (19:24 -0700)
commit4b965b97d836d06a2146e43a17d562e24eddce37
treef6da5b842a4316ba7905df0fbb855b4190f68d98
parenta2ea9ee707a4b3442f974e67f50cdf4d73faa032
checkpatch: exclude four preprocessor sub-expressions from MACRO_ARG_REUSE

__must_be_array, offsetof, sizeof_field and __stringify are all
preprocessor macros and do not evaluate their arguments.  As such, it is
safe not to warn when arguments are being reused in those four
sub-expressions.

Exclude those so that they can pass checkpatch.

Link: https://lkml.kernel.org/r/20210407105042.25380-1-mailhol.vincent@wanadoo.fr
Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
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