summaryrefslogtreecommitdiffstats
path: root/arch/ia64
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-12-27 10:19:22 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2017-04-06 19:35:49 -0400
commit1bd5986bbccf1c44bc365f3cd5280350e8aa76bc (patch)
treeb95b471e5e297b1c08f326761c3ce7fba0aa1c4c /arch/ia64
parent8bec2717265601516bfe129acb4100a3070806ce (diff)
downloadlinux-stable-1bd5986bbccf1c44bc365f3cd5280350e8aa76bc.tar.gz
linux-stable-1bd5986bbccf1c44bc365f3cd5280350e8aa76bc.tar.bz2
linux-stable-1bd5986bbccf1c44bc365f3cd5280350e8aa76bc.zip
ia64: get rid of 'segment' argument of __{get,put}_user_check()
always equal to get_fs() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/ia64')
-rw-r--r--arch/ia64/include/asm/uaccess.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/ia64/include/asm/uaccess.h b/arch/ia64/include/asm/uaccess.h
index 3f5ca0b8328a..4132497d8ee6 100644
--- a/arch/ia64/include/asm/uaccess.h
+++ b/arch/ia64/include/asm/uaccess.h
@@ -76,8 +76,8 @@
* (a) re-use the arguments for side effects (sizeof/typeof is ok)
* (b) require any knowledge of processes at this stage
*/
-#define put_user(x, ptr) __put_user_check((__typeof__(*(ptr))) (x), (ptr), sizeof(*(ptr)), get_fs())
-#define get_user(x, ptr) __get_user_check((x), (ptr), sizeof(*(ptr)), get_fs())
+#define put_user(x, ptr) __put_user_check((__typeof__(*(ptr))) (x), (ptr), sizeof(*(ptr)))
+#define get_user(x, ptr) __get_user_check((x), (ptr), sizeof(*(ptr)))
/*
* The "__xxx" versions do not do address space checking, useful when
@@ -199,7 +199,7 @@ extern void __get_user_unknown (void);
})
#define __get_user_nocheck(x, ptr, size) __do_get_user(0, x, ptr, size, KERNEL_DS)
-#define __get_user_check(x, ptr, size, segment) __do_get_user(1, x, ptr, size, segment)
+#define __get_user_check(x, ptr, size) __do_get_user(1, x, ptr, size, get_fs())
extern void __put_user_unknown (void);
@@ -226,7 +226,7 @@ extern void __put_user_unknown (void);
})
#define __put_user_nocheck(x, ptr, size) __do_put_user(0, x, ptr, size, KERNEL_DS)
-#define __put_user_check(x, ptr, size, segment) __do_put_user(1, x, ptr, size, segment)
+#define __put_user_check(x, ptr, size) __do_put_user(1, x, ptr, size, get_fs())
/*
* Complex access routines