diff options
author | 2005-09-09 21:10:18 +0100 | |
---|---|---|
committer | 2005-09-09 14:07:54 -0700 | |
commit | 6bd4c464c6b0e5faee0032fb5abdf0eb2fc6dcad (patch) | |
tree | 0d246570177a2af2c7268f5b8767bd3d67664bd4 /lib.h | |
parent | Warn about undefined preprocessor symbols at expansion time, not parse time (diff) | |
download | sparse-6bd4c464c6b0e5faee0032fb5abdf0eb2fc6dcad.tar.gz sparse-6bd4c464c6b0e5faee0032fb5abdf0eb2fc6dcad.tar.bz2 sparse-6bd4c464c6b0e5faee0032fb5abdf0eb2fc6dcad.zip |
[PATCH] More address space checking
* generate a warning when we cast _between_ address spaces (e.g. cast
from __user to __iomem).
* optional (on -Wcast-to-as) warning when casting _TO_ address space
(e.g. when normal pointer is cast to __iomem one - that caught a lot
of crap in drivers). casts from unsigned long are still OK, so's
cast from 0, so's __force cast, of course.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'lib.h')
-rw-r--r-- | lib.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -79,6 +79,7 @@ extern int Wdefault_bitfield_sign; extern int Wundefined_preprocessor; extern int Wbitwise, Wtypesign, Wcontext; extern int Wtransparent_union; +extern int Wcast_to_address_space; extern void declare_builtin_functions(void); extern void create_builtin_stream(void); |