s390/uaccess: remove dead extern declarations, make functions static
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 20 Jan 2014 16:07:42 +0000 (17:07 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 22 Jan 2014 13:02:17 +0000 (14:02 +0100)
Remove some dead uaccess extern declarations and also make some functions
static, since they are only used locally.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/lib/uaccess.h
arch/s390/lib/uaccess_pt.c

index 315dbe09983e518b06326b2f730c45a176a57aa5..b1a22173d027b9bde6774194631d635932bc42ff 100644 (file)
@@ -6,15 +6,6 @@
 #ifndef __ARCH_S390_LIB_UACCESS_H
 #define __ARCH_S390_LIB_UACCESS_H
 
-extern size_t copy_from_user_std(size_t, const void __user *, void *);
-extern size_t copy_to_user_std(size_t, void __user *, const void *);
-extern size_t strnlen_user_std(size_t, const char __user *);
-extern size_t strncpy_from_user_std(size_t, const char __user *, char *);
-extern int futex_atomic_cmpxchg_std(u32 *, u32 __user *, u32, u32);
-extern int futex_atomic_op_std(int, u32 __user *, int, int *);
-
-extern size_t copy_from_user_pt(size_t, const void __user *, void *);
-extern size_t copy_to_user_pt(size_t, void __user *, const void *);
 extern int futex_atomic_op_pt(int, u32 __user *, int, int *);
 extern int futex_atomic_cmpxchg_pt(u32 *, u32 __user *, u32, u32);
 
index 5b77c341a1e36e3c49079d24d07f711cddbc974a..61ebcc9ccb3472abe320fd8ed4939b4cc5074ebe 100644 (file)
@@ -211,7 +211,7 @@ fault:
        return 0;
 }
 
-size_t copy_from_user_pt(size_t n, const void __user *from, void *to)
+static size_t copy_from_user_pt(size_t n, const void __user *from, void *to)
 {
        size_t rc;
 
@@ -223,7 +223,7 @@ size_t copy_from_user_pt(size_t n, const void __user *from, void *to)
        return rc;
 }
 
-size_t copy_to_user_pt(size_t n, void __user *to, const void *from)
+static size_t copy_to_user_pt(size_t n, void __user *to, const void *from)
 {
        if (segment_eq(get_fs(), KERNEL_DS))
                return copy_in_kernel(n, to, (void __user *) from);
This page took 0.029357 seconds and 5 git commands to generate.