Commit e0436b31 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by David S. Miller

[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: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d16436e6
...@@ -27,17 +27,6 @@ ...@@ -27,17 +27,6 @@
*/ */
#define A(__x) compat_ptr(__x) #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 #define CODE
#include "compat_ioctl.c" #include "compat_ioctl.c"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment