]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: handle casts better fixing false categorisation of : as binary
authorAndy Whitcroft <apw@canonical.com>
Tue, 26 Oct 2010 21:23:13 +0000 (14:23 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Oct 2010 23:52:20 +0000 (16:52 -0700)
commita275ae838a40806b1ae79bcc4c5ce5c253084eb6
treea46d6265a77f637f882c9136c914483b5d4598d8
parent1c8799343a790a92be6d2ebea1ccdd1ca5c2942e
checkpatch: handle casts better fixing false categorisation of : as binary

The following incantation is triggering categorisation of its colon (:) as
a binary form, which it is not:

return foo ? (s8)bar : baz;

Handle casts differently from types in the categoriser, allowing us to
better track (s8)bar as a value and not a declaration.

Reported-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl