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
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 936 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.8 KB
Kbuild -rw-r--r-- 2.5 KB
MAINTAINERS -rw-r--r-- 176.8 KB
Makefile -rw-r--r-- 51.2 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top