]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: improve macro reuse test
authorJoe Perches <joe@perches.com>
Mon, 10 Jul 2017 22:52:27 +0000 (15:52 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 10 Jul 2017 23:32:35 +0000 (16:32 -0700)
commit6d87c4f5e96094efd89f205e668b9ac3c12049ee
tree3b9edffbe9302f08e78392e251f3babfa6998801
parent5418d5850f54e143be97ac2116887471852d07e6
checkpatch: improve macro reuse test

checkpatch reports a false positive when using token pasting argument
multiple times in a macro.

Fix it.

Miscellanea:

o Make the $tmp variable name used in the macro argument tests
  a bit more descriptive

Link: http://lkml.kernel.org/r/cf434ae7602838388c7cb49d42bca93ab88527e7.1498483044.git.joe@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Reported-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl