]> 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)
commit13e0d529b88f30d8e99e26d1ebd32f41c7146c8d
tree45bc6cf5392974a642f9264cd0c1871b375131e7
parentfbdc2233a5f52845d80487867d380755a5ff5d6a
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