kill __kernel_ds_p off
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 3 Sep 2016 22:23:48 +0000 (18:23 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 28 Sep 2016 01:15:20 +0000 (21:15 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/frv/include/asm/segment.h
arch/mn10300/include/asm/uaccess.h

index 4377c89..2305142 100644 (file)
@@ -32,7 +32,6 @@ typedef struct {
 #define get_ds()               (KERNEL_DS)
 #define get_fs()               (__current_thread_info->addr_limit)
 #define segment_eq(a, b)       ((a).seg == (b).seg)
-#define __kernel_ds_p()                segment_eq(get_fs(), KERNEL_DS)
 #define get_addr_limit()       (get_fs().seg)
 
 #define set_fs(_x)                                     \
index bd285e5..2eedf6f 100644 (file)
@@ -38,7 +38,6 @@
 #define get_ds()       (KERNEL_DS)
 #define get_fs()       (current_thread_info()->addr_limit)
 #define set_fs(x)      (current_thread_info()->addr_limit = (x))
-#define __kernel_ds_p() (current_thread_info()->addr_limit.seg == 0x9FFFFFFF)
 
 #define segment_eq(a, b) ((a).seg == (b).seg)