]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8f982c4efc6e81204d46a580e73e22bb5ba140e5
tree45bc6cf5392974a642f9264cd0c1871b375131e7
parent90ecb7b4941f36abc6ee7ba1e8e1a96da35e45b7
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