]> git.baikalelectronics.ru Git - kernel.git/commit
x86: start using named parameters for low-level uaccess asms
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 Apr 2020 20:23:14 +0000 (13:23 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 Apr 2020 20:23:14 +0000 (13:23 -0700)
commit4257b7d37e01f5cbbb3e5624f67d10b5a0f3789a
tree898dde3e925c815c287b88fefb3d9320a583235a
parent7d554c1b79f9829d7c698094147c45dc3e3c5b0e
x86: start using named parameters for low-level uaccess asms

This is partly for readability - using named arguments instead of
numbered ones makes it muchmore obvious just what is going on.  Using
"%[efault]" instead of "%4" for the special -EFAULT constant just means
that you don't have to count the arguments to see what's up.

But the motivation for all this cleanup is that when we'll start to
conditionally use "asm goto" even for the __get_user_asm() case, the
argument numbers will depend on whether we have an error output, or an
error label we can just directly jump to.

So this moves us towards named arguments for the same reason that we
have to use named arguments for the asms that use SET_CC(): numbering
will eventually become similarly unreliable and depends on whether we
can use particular compiler features or not.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/include/asm/uaccess.h