aboutsummaryrefslogtreecommitdiffstats
path: root/arch/csky/include/asm/segment.h
diff options
context:
space:
mode:
authorGuo Ren <guoren@linux.alibaba.com>2021-04-21 16:03:28 +0800
committerGuo Ren <guoren@linux.alibaba.com>2021-04-28 23:02:23 +0800
commite58a41c2226847fb1446f3942dc1b55af8acfe02 (patch)
treec95c8d71ad004c624580748d37d5c4843ba414be /arch/csky/include/asm/segment.h
parentcsky: fix syscache.c fallthrough warning (diff)
downloadlinux-dev-e58a41c2226847fb1446f3942dc1b55af8acfe02.tar.xz
linux-dev-e58a41c2226847fb1446f3942dc1b55af8acfe02.zip
csky: uaccess.h: Coding convention with asm generic
Using asm-generic/uaccess.h to prevent duplicated code: - Add user_addr_max which mentioned in generic uaccess.h - Remove custom definitions of KERNEL/USER_DS, get/set_fs, uaccess_kerenl - Using generic extable.h instead of custom definitions in uaccess.h Change v2: - Fixup tinyconfig compile error, "__put_user_bad" - Add __get_user_asm_64 Signed-off-by: Guo Ren <guoren@linux.alibaba.com> Link: https://lore.kernel.org/linux-csky/CAK8P3a1DvsXSEDoovLk11hzNHyJi7vqNoToU+n5aFi2viZO_Uw@mail.gmail.com/T/#mbcd58a0e3450e5598974116b607589afa16a3ab7 Cc: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/csky/include/asm/segment.h')
-rw-r--r--arch/csky/include/asm/segment.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/csky/include/asm/segment.h b/arch/csky/include/asm/segment.h
index 589e8321dc14..5bc1cc62b87f 100644
--- a/arch/csky/include/asm/segment.h
+++ b/arch/csky/include/asm/segment.h
@@ -7,11 +7,4 @@ typedef struct {
unsigned long seg;
} mm_segment_t;
-#define KERNEL_DS ((mm_segment_t) { 0xFFFFFFFF })
-
-#define USER_DS ((mm_segment_t) { PAGE_OFFSET })
-#define get_fs() (current_thread_info()->addr_limit)
-#define set_fs(x) (current_thread_info()->addr_limit = (x))
-#define uaccess_kernel() (get_fs().seg == KERNEL_DS.seg)
-
#endif /* __ASM_CSKY_SEGMENT_H */