arm64: uaccess: Remove uaccess_*_not_uao asm macros
authorPavel Tatashin <pasha.tatashin@soleen.com>
Wed, 20 Nov 2019 17:07:40 +0000 (12:07 -0500)
committerWill Deacon <will@kernel.org>
Wed, 20 Nov 2019 18:51:54 +0000 (18:51 +0000)
commite50be648aaa3da196d4f4ed49d1c5d4ec105fa4a
tree9c173b83fa66c80fb84c5dfa4738e39372011fb7
parent94bb804e1e6f0a9a77acf20d7c70ea141c6c821e
arm64: uaccess: Remove uaccess_*_not_uao asm macros

It is safer and simpler to drop the uaccess assembly macros in favour of
inline C functions. Although this bloats the Image size slightly, it
aligns our user copy routines with '{get,put}_user()' and generally
makes the code a lot easier to reason about.

Cc: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Pavel Tatashin <pasha.tatashin@soleen.com>
[will: tweaked commit message and changed temporary variable names]
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/asm-uaccess.h
arch/arm64/include/asm/uaccess.h
arch/arm64/lib/clear_user.S
arch/arm64/lib/copy_from_user.S
arch/arm64/lib/copy_in_user.S
arch/arm64/lib/copy_to_user.S
arch/arm64/lib/uaccess_flushcache.c