Greg Kroah-Hartman gregkh@linuxfoundation.org writes:
5.10-stable review patch. If anyone has any objections, please let me know.
From: Christophe Leroy christophe.leroy@csgroup.eu
[ Upstream commit 5cd29b1fd3e8f2b45fe6d011588d832417defe31 ]
clang 11 and future GCC are supporting asm goto with outputs.
Use it to implement get_user in order to get better generated code.
Note that clang requires to set x in the default branch of __get_user_size_goto() otherwise is compliant about x not being initialised :puzzled:
Signed-off-by: Christophe Leroy christophe.leroy@csgroup.eu Signed-off-by: Michael Ellerman mpe@ellerman.id.au Link: https://lore.kernel.org/r/403745b5aaa1b315bb4e8e46c1ba949e77eecec0.161539826... Stable-dep-of: 50934945d542 ("powerpc/uaccess: Use YZ asm constraint for ld") Signed-off-by: Sasha Levin sashal@kernel.org
arch/powerpc/include/asm/uaccess.h | 55 ++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+)
This is causing a build break. Please drop it.
There have been a lot of changes to uaccess.h since v5.10. I think rather than trying to pull in enough of them to allow backporting the recent uaccess fixes it'd be better to do a custom backport. I'll send one once I've done some build tests.
cheers