aboutsummaryrefslogtreecommitdiff
path: root/lib.h
diff options
context:
space:
mode:
authorviro@ZenIV.linux.org.uk <viro@ZenIV.linux.org.uk>2005-09-09 21:10:18 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-09 14:07:54 -0700
commit6bd4c464c6b0e5faee0032fb5abdf0eb2fc6dcad (patch)
tree0d246570177a2af2c7268f5b8767bd3d67664bd4 /lib.h
parentWarn about undefined preprocessor symbols at expansion time, not parse time (diff)
downloadsparse-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib.h b/lib.h
index 3247a88..5eb755b 100644
--- a/lib.h
+++ b/lib.h
@@ -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);