Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

parent 1f41bb3a
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -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