arch: remove compat_alloc_user_space
[sfrench/cifs-2.6.git] / include / linux / uaccess.h
index c05e903cef02a3daa471c83a3593c34a168cd02e..ac0394087f7d4d2ad569eeca9dba0e8c50893d23 100644 (file)
@@ -200,16 +200,6 @@ copy_to_user(void __user *to, const void *from, unsigned long n)
                n = _copy_to_user(to, from, n);
        return n;
 }
-#ifdef CONFIG_COMPAT
-static __always_inline unsigned long __must_check
-copy_in_user(void __user *to, const void __user *from, unsigned long n)
-{
-       might_fault();
-       if (access_ok(to, n) && access_ok(from, n))
-               n = raw_copy_in_user(to, from, n);
-       return n;
-}
-#endif
 
 #ifndef copy_mc_to_kernel
 /*