Commit ce8ed09b authored by Matthew Wilcox's avatar Matthew Wilcox Committed by Linus Torvalds

[PATCH] PA-RISC access_ok()

Make access_ok an inline function to get rid of an unused variable warning
Signed-off-by: default avatarMatthew Wilcox <willy@parisc-linux.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 6c2185ff
......@@ -34,7 +34,12 @@ extern int __get_user_bad(void);
extern int __put_kernel_bad(void);
extern int __put_user_bad(void);
#define access_ok(type,addr,size) (1)
static inline long access_ok(int type, const void __user * addr,
unsigned long size)
{
return 1;
}
#define verify_area(type,addr,size) (0)
#define put_user __put_user
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment