checkpatch: improve macro reuse test
authorJoe Perches <[email protected]>
Mon, 10 Jul 2017 22:52:27 +0000 (15:52 -0700)
committerLinus Torvalds <[email protected]>
Mon, 10 Jul 2017 23:32:35 +0000 (16:32 -0700)
commit7fe528a27dee5fcab3bc093ee6f311080f799e29
tree3b9edffbe9302f08e78392e251f3babfa6998801
parent737c0767758bbd65cf95c44ccc09bca970e2ef8e
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 <[email protected]>
Reported-by: Johannes Berg <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
scripts/checkpatch.pl