]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: fix false positives for --strict "space after cast" test
authorJoe Perches <joe@perches.com>
Wed, 6 Aug 2014 23:11:27 +0000 (16:11 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Aug 2014 01:01:29 +0000 (18:01 -0700)
commit5005d9f03bdb70bef9a2b993a98d01d8fb7a4c64
treebfc2cc7c0b7a3aa2136b812d28a5d1a9a86853c0
parentcf6d4a227eeebd43663f72784eefdec69f6b917b
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 <joe@perches.com>
Reported-by: Hartley Sweeten <HartleyS@visionengravers.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl