x86: merge __put_user_asm and its user.
authorGlauber Costa <gcosta@redhat.com>
Wed, 25 Jun 2008 14:48:29 +0000 (11:48 -0300)
committerIngo Molnar <mingo@elte.hu>
Wed, 9 Jul 2008 07:14:22 +0000 (09:14 +0200)
commitdc70ddf4098de043ac52f623c7573a11f2ae3d09
tree0641f33c243a7d1feec051670cdced9ffec36535
parentd42e6af613375be7a9a431628ecd742e87230554
x86: merge __put_user_asm and its user.

Move both __put_user_asm and __put_user_size to
uaccess.h. i386 already had a special function for 64-bit access,
so for x86_64, we just define a macro with the same name.
Note that for X86_64, CONFIG_X86_WP_WORKS_OK will always
be defined, so the #else part will never be even compiled in.

Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/asm-x86/uaccess.h
include/asm-x86/uaccess_32.h
include/asm-x86/uaccess_64.h