OSDN Git Service

x86/uaccess: utilize CONFIG_CC_HAS_ASM_GOTO_OUTPUT
authorNick Desaulniers <ndesaulniers@google.com>
Fri, 7 Aug 2020 20:59:18 +0000 (13:59 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 13 Oct 2020 01:43:08 +0000 (18:43 -0700)
commit865c50e1d279671728c2936cb7680eb89355eeea
tree45bc6cf5392974a642f9264cd0c1871b375131e7
parentd55564cfc222326e944893eff0c4118353e349ec
x86/uaccess: utilize CONFIG_CC_HAS_ASM_GOTO_OUTPUT

Clang-11 shipped support for outputs to asm goto statments along the
fallthrough path.  Double up some of the get_user() and related macros
to be able to take advantage of this extended GNU C extension. This
should help improve the generated code's performance for these accesses.

Cc: Bill Wendling <morbo@google.com>
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/include/asm/uaccess.h