checkpatch: fix false positives for --strict "space after cast" test
authorJoe Perches <[email protected]>
Wed, 6 Aug 2014 23:11:27 +0000 (16:11 -0700)
committerLinus Torvalds <[email protected]>
Thu, 7 Aug 2014 01:01:29 +0000 (18:01 -0700)
commit308cc8d8f0deab2c5a5162316277ced556acc71f
treebfc2cc7c0b7a3aa2136b812d28a5d1a9a86853c0
parente81f239b4db2ad6c4b029ed92f0222601ce42abe
checkpatch: fix false positives for --strict "space after cast" test

Commit 89da401f6cff ("checkpatch: improve "no space after cast" test")
in -next improved the cast test for non pointer types, but also
introduced false positives for some types of static inlines.

Add a test for an open brace to the exclusions to avoid these false
positives.

Signed-off-by: Joe Perches <[email protected]>
Reported-by: Hartley Sweeten <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
scripts/checkpatch.pl