csky: uaccess.h: Coding convention with asm generic
authorGuo Ren <guoren@linux.alibaba.com>
Wed, 21 Apr 2021 08:03:28 +0000 (16:03 +0800)
committerGuo Ren <guoren@linux.alibaba.com>
Wed, 28 Apr 2021 15:02:23 +0000 (23:02 +0800)
commite58a41c2226847fb1446f3942dc1b55af8acfe02
treec95c8d71ad004c624580748d37d5c4843ba414be
parent0679d29d3e2351a1c3049c26a63ce1959cad5447
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>
arch/csky/include/asm/Kbuild
arch/csky/include/asm/segment.h
arch/csky/include/asm/uaccess.h
arch/csky/lib/usercopy.c
arch/csky/mm/fault.c