aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2005-11-07 17:11:02 -0500
committerDavid S. Miller <davem@davemloft.net>2005-11-07 17:11:02 -0500
commite0436b3164fd071acd30a50339b7b6ba5f053cf6 (patch)
treeca2df099eb42c9ce042fd1294be70b8433462afc /arch/sparc64/kernel
parentd16436e686949a17b3bcfff2d688c97354b599aa (diff)
[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 <hch@lst.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel')
-rw-r--r--arch/sparc64/kernel/ioctl32.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/arch/sparc64/kernel/ioctl32.c b/arch/sparc64/kernel/ioctl32.c
index e6a00325075a..0e587d6de319 100644
--- a/arch/sparc64/kernel/ioctl32.c
+++ b/arch/sparc64/kernel/ioctl32.c
@@ -27,17 +27,6 @@
27 */ 27 */
28#define A(__x) compat_ptr(__x) 28#define A(__x) compat_ptr(__x)
29 29
30static __inline__ void *alloc_user_space(long len)
31{
32 struct pt_regs *regs = current_thread_info()->kregs;
33 unsigned long usp = regs->u_regs[UREG_I6];
34
35 if (!(test_thread_flag(TIF_32BIT)))
36 usp += STACK_BIAS;
37
38 return (void *) (usp - len);
39}
40
41#define CODE 30#define CODE
42#include "compat_ioctl.c" 31#include "compat_ioctl.c"
43 32