[SPARC64]: remove alloc_user_space()
authorChristoph Hellwig <hch@lst.de>
Mon, 7 Nov 2005 22:11:02 +0000 (14:11 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Nov 2005 22:11:02 +0000 (14:11 -0800)
this inline routine in arch/sparc64/kernel/ioctl32.c is completely
unused and superceeded by compat_alloc_user_space()

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/ioctl32.c

index e6a00325075ac2d44df6b59a3087711a18d1fe04..0e587d6de319900bbbc34a57561a2400fe86cf0d 100644 (file)
  */
 #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"