https://github.com/torvalds/linux
Revision 9446ef569c288e683225fec8337a0b2b81e75cc5 authored by Andy Whitcroft on 26 October 2010, 21:23:13 UTC, committed by Linus Torvalds on 26 October 2010, 23:52:20 UTC
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>
1 parent fb2d2c1
History
Tip revision: 9446ef569c288e683225fec8337a0b2b81e75cc5 authored by Andy Whitcroft on 26 October 2010, 21:23:13 UTC
checkpatch: handle casts better fixing false categorisation of : as binary
Tip revision: 9446ef5
File Mode Size
00-INDEX -rw-r--r-- 355 bytes
kbuild.txt -rw-r--r-- 6.2 KB
kconfig-language.txt -rw-r--r-- 12.7 KB
kconfig.txt -rw-r--r-- 6.8 KB
makefiles.txt -rw-r--r-- 44.3 KB
modules.txt -rw-r--r-- 18.6 KB

back to top