]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: improve multi-line alignment test
authorJoe Perches <joe@perches.com>
Mon, 10 Jul 2017 22:52:30 +0000 (15:52 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 10 Jul 2017 23:32:35 +0000 (16:32 -0700)
commit21ac924e1f771717edb8a7ab7f5e7b35ea15b69f
tree311caa31f03c8eca5a14c2d4a5ced67985d604e3
parentc643a4a8fc6b3a16faf3cbf4ca356e7607c412d5
checkpatch: improve multi-line alignment test

The current test fails to warn about improper alignment with code like

foo->bar = func(arg1,
arg2);

because foo->bar is not a single identifier.

Convert the $Ident to $Lval which allows for multiple dereferences.

Link: http://lkml.kernel.org/r/01c35b9b6a12a415e57746d45d589bfaad39952a.1498841563.git.joe@perches.com
Signed-off-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