From: Christoph Hellwig Date: Mon, 7 Nov 2005 22:11:02 +0000 (-0800) Subject: [SPARC64]: remove alloc_user_space() X-Git-Tag: v3.12-rc1~40944^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e0436b3164fd071acd30a50339b7b6ba5f053cf6;p=kernel%2Fkernel-generic.git [SPARC64]: remove alloc_user_space() this inline routine in arch/sparc64/kernel/ioctl32.c is completely unused and superceeded by compat_alloc_user_space() Signed-off-by: Christoph Hellwig Signed-off-by: David S. Miller --- diff --git a/arch/sparc64/kernel/ioctl32.c b/arch/sparc64/kernel/ioctl32.c index e6a0032..0e587d6 100644 --- a/arch/sparc64/kernel/ioctl32.c +++ b/arch/sparc64/kernel/ioctl32.c @@ -27,17 +27,6 @@ */ #define A(__x) compat_ptr(__x) -static __inline__ void *alloc_user_space(long len) -{ - struct pt_regs *regs = current_thread_info()->kregs; - unsigned long usp = regs->u_regs[UREG_I6]; - - if (!(test_thread_flag(TIF_32BIT))) - usp += STACK_BIAS; - - return (void *) (usp - len); -} - #define CODE #include "compat_ioctl.c"