Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86: remove __put_user_asm() infrastructure

The last user was removed by commit 4b842e4e25b1 ("x86: get rid of small
constant size cases in raw_copy_{to,from}_user()"). Get rid of the
left-overs before somebody tries to use it again.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

-11
-11
arch/x86/include/asm/uaccess.h
··· 383 383 : : ltype(x), "m" (__m(addr)) \ 384 384 : : label) 385 385 386 - #define __put_user_failed(x, addr, itype, rtype, ltype, errret) \ 387 - ({ __label__ __puflab; \ 388 - int __pufret = errret; \ 389 - __put_user_goto(x,addr,itype,rtype,ltype,__puflab); \ 390 - __pufret = 0; \ 391 - __puflab: __pufret; }) 392 - 393 - #define __put_user_asm(x, addr, retval, itype, rtype, ltype, errret) do { \ 394 - retval = __put_user_failed(x, addr, itype, rtype, ltype, errret); \ 395 - } while (0) 396 - 397 386 /** 398 387 * __get_user - Get a simple variable from user space, with less checking. 399 388 * @x: Variable to store result.