[PATCH] More address space checking
commit6bd4c464c6b0e5faee0032fb5abdf0eb2fc6dcad
authorviro@ZenIV.linux.org.uk <viro@ZenIV.linux.org.uk>
Fri, 9 Sep 2005 20:10:18 +0000 (9 21:10 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 9 Sep 2005 21:07:54 +0000 (9 14:07 -0700)
tree0d246570177a2af2c7268f5b8767bd3d67664bd4
parentf73ca60933f0145696081b7727f172a8f21e148e
[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>
evaluate.c
lib.c
lib.h