Skip to content
Snippets Groups Projects
Commit c47ffe3d authored by Al Viro's avatar Al Viro Committed by Linus Torvalds
Browse files

make __chk_{user,io}_ptr() accept pointers to volatile


Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 1f41bb3a
No related branches found
No related tags found
No related merge requests found
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
# define __acquire(x) __context__(x,1) # define __acquire(x) __context__(x,1)
# define __release(x) __context__(x,-1) # define __release(x) __context__(x,-1)
# define __cond_lock(x,c) ((c) ? ({ __acquire(x); 1; }) : 0) # define __cond_lock(x,c) ((c) ? ({ __acquire(x); 1; }) : 0)
extern void __chk_user_ptr(const void __user *); extern void __chk_user_ptr(const volatile void __user *);
extern void __chk_io_ptr(const void __iomem *); extern void __chk_io_ptr(const volatile void __iomem *);
#else #else
# define __user # define __user
# define __kernel # define __kernel
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment