linux/arch
Linus Torvalds 7da63b3d54 x86: get rid of 'rtype' argument to __get_user_asm() macro
This is the exact same thing as 3680785692 ("x86: get rid of 'rtype'
argument to __put_user_goto() macro") except it's about __get_user_asm()
rather than __put_user_goto().

The reasons are the same: having the low-level asm access the argument
with a different size than the compiler thinks it does is fundamentally
wrong.

But unlike the __put_user_goto() case, we actually did tell the compiler
that we used a bigger variable (either long or long long), and then only
filled in the low bits, and ended up "fixing" this by casting the result
to the proper pointer type.

That's because we needed to use a non-qualified type (the user pointer
might be a const pointer!), and that makes this a bit more painful.  Our
'__inttype()' macro used to be lazy and only differentiate between "fits
in a register" or "needs two registers".

So this fix had to also make that '__inttype()' macro more precise.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-04-01 12:41:50 -07:00
..
alpha Updates for the interrupt subsystem: 2020-03-30 17:35:14 -07:00
arc Merge branch 'locking-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2020-03-30 16:17:15 -07:00
arm Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-03-31 17:29:33 -07:00
arm64 Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-03-31 17:29:33 -07:00
c6x c6x: Replace setup_irq() by request_irq() 2020-03-29 21:03:42 +02:00
csky csky: Remove mm.h from asm/uaccess.h 2020-03-21 16:00:21 +01:00
h8300
hexagon Updates for the interrupt subsystem: 2020-03-30 17:35:14 -07:00
ia64 Couple of cleanup patches 2020-03-31 09:26:06 -07:00
m68k m68k updates for v5.7 2020-03-31 08:49:26 -07:00
microblaze Microblaze patches for 5.7-rc1 2020-03-31 09:58:07 -07:00
mips MIPS updates for v5.7: 2020-03-31 08:51:45 -07:00
nds32 Merge branch 'uaccess.futex' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs into locking/core 2020-03-28 11:59:24 +01:00
nios2
openrisc futex: arch_futex_atomic_op_inuser() calling conventions change 2020-03-27 23:58:51 -04:00
parisc CPU (hotplug) updates: 2020-03-30 18:06:39 -07:00
powerpc Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-03-31 17:29:33 -07:00
riscv Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-03-31 17:29:33 -07:00
s390 Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-03-31 17:29:33 -07:00
sh Kbuild updates for v5.7 2020-03-31 16:03:39 -07:00
sparc Kbuild updates for v5.7 2020-03-31 16:03:39 -07:00
um um: reject unsupported coalescing params 2020-03-06 22:45:54 -08:00
unicore32 Updates for the interrupt subsystem: 2020-03-30 17:35:14 -07:00
x86 x86: get rid of 'rtype' argument to __get_user_asm() macro 2020-04-01 12:41:50 -07:00
xtensa Merge branch 'locking-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2020-03-30 16:17:15 -07:00
.gitignore
Kconfig NOHZ full updates: 2020-03-30 18:29:05 -07:00