]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: improve "no space after cast" test
authorJoe Perches <joe@perches.com>
Wed, 6 Aug 2014 23:10:52 +0000 (16:10 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Aug 2014 01:01:28 +0000 (18:01 -0700)
commitabe7798537da274474cca1205ebefdebeb55f225
treecee0d9465e848c59d8b290b70a9b16e39d5d3b4c
parentcaad9953d7c8ff53a610fbe0c20313762df5fea0
checkpatch: improve "no space after cast" test

This --strict test previously worked only for what appeared to be cast
to pointer types.

Make it work for all casts.

Also, there's no reason to show the previous line for this type of
message, so don't.

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