]> 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)
commitc6719b519f86e5f1069d95432a4cf39a0369de0b
treecee0d9465e848c59d8b290b70a9b16e39d5d3b4c
parent7df2f32d31f439444dd1545bc756d9f1ccf83a07
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