diff options
author | Andy Whitcroft <apw@canonical.com> | 2010-10-26 23:23:13 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-10-27 01:52:20 +0200 |
commit | 9446ef569c288e683225fec8337a0b2b81e75cc5 (patch) | |
tree | a46d6265a77f637f882c9136c914483b5d4598d8 /scripts/patch-kernel | |
parent | checkpatch: ensure we do not collapse bracketed sections into constants (diff) | |
download | linux-9446ef569c288e683225fec8337a0b2b81e75cc5.tar.xz linux-9446ef569c288e683225fec8337a0b2b81e75cc5.zip |
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>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions