aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2017-01-29 12:19:33 -0500
committerHelge Deller <deller@gmx.de>2017-02-25 16:22:54 -0500
commit09b871ffd4d8ddc005a9480fb69ff1897caaeb1f (patch)
treed48d7dd251a99d758606dd04b6c5959e12392060
parentaf640d17ecee1f82a949b580cc4a3e8f29c377b9 (diff)
parisc: Define access_ok() as macro
Define access_ok() as macro instead of static function. This fixes build warnings in code where the second parameter is given as unsigned long. Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r--arch/parisc/include/asm/uaccess.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/parisc/include/asm/uaccess.h b/arch/parisc/include/asm/uaccess.h
index 9a2aee1b90fc..fb4382c28259 100644
--- a/arch/parisc/include/asm/uaccess.h
+++ b/arch/parisc/include/asm/uaccess.h
@@ -32,11 +32,7 @@
32 * that put_user is the same as __put_user, etc. 32 * that put_user is the same as __put_user, etc.
33 */ 33 */
34 34
35static inline long access_ok(int type, const void __user * addr, 35#define access_ok(type, uaddr, size) (1)
36 unsigned long size)
37{
38 return 1;
39}
40 36
41#define put_user __put_user 37#define put_user __put_user
42#define get_user __get_user 38#define get_user __get_user