]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: allow space between colon and bracket
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 10 Apr 2018 23:34:14 +0000 (16:34 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Apr 2018 17:28:36 +0000 (10:28 -0700)
commitfdf114f9333165fc18704503953283d8a55bdd3f
tree7baa7af125d854f25c0920007cf832ee715799d7
parentdcbf00c7f13b6237593758b9893ffbdc946b46c5
checkpatch: allow space between colon and bracket

Allow a space between a colon and subsequent opening bracket.  This
sequence may occur in inline assembler statements like

asm(
"ldr %[out], [%[in]]\n\t"
: [out] "=r" (ret)
: [in] "r" (addr)
);

Link: http://lkml.kernel.org/r/20180403191655.23700-1-xypron.glpk@gmx.de
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
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