Skip to content

Commit ab33eb4

Browse files
committed
x86: remove __put_user_asm() infrastructure
The last user was removed by commit 4b842e4 ("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 <[email protected]>
1 parent 29d9f30 commit ab33eb4

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

arch/x86/include/asm/uaccess.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -383,17 +383,6 @@ struct __large_struct { unsigned long buf[100]; };
383383
: : ltype(x), "m" (__m(addr)) \
384384
: : label)
385385

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-
397386
/**
398387
* __get_user - Get a simple variable from user space, with less checking.
399388
* @x: Variable to store result.

0 commit comments

Comments
 (0)