aboutsummaryrefslogtreecommitdiff
path: root/arch/arc/include/asm/segment.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arc/include/asm/segment.h')
-rw-r--r--arch/arc/include/asm/segment.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arc/include/asm/segment.h b/arch/arc/include/asm/segment.h
index 6a2a5be5026d..871f8ab11bfd 100644
--- a/arch/arc/include/asm/segment.h
+++ b/arch/arc/include/asm/segment.h
@@ -14,8 +14,7 @@ typedef unsigned long mm_segment_t;
#define KERNEL_DS MAKE_MM_SEG(0)
#define USER_DS MAKE_MM_SEG(TASK_SIZE)
-
-#define segment_eq(a, b) ((a) == (b))
+#define uaccess_kernel() (get_fs() == KERNEL_DS)
#endif /* __ASSEMBLY__ */
#endif /* __ASMARC_SEGMENT_H */