Skip to content

Commit 0ff2fe5

Browse files
heicarstMartin Schwidefsky
authored andcommitted
s390/uaccess: remove dead extern declarations, make functions static
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>
1 parent b03b467 commit 0ff2fe5

2 files changed

Lines changed: 2 additions & 11 deletions

File tree

‎arch/s390/lib/uaccess.h‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,6 @@
66
#ifndef __ARCH_S390_LIB_UACCESS_H
77
#define __ARCH_S390_LIB_UACCESS_H
88

9-
extern size_t copy_from_user_std(size_t, const void __user *, void *);
10-
extern size_t copy_to_user_std(size_t, void __user *, const void *);
11-
extern size_t strnlen_user_std(size_t, const char __user *);
12-
extern size_t strncpy_from_user_std(size_t, const char __user *, char *);
13-
extern int futex_atomic_cmpxchg_std(u32 *, u32 __user *, u32, u32);
14-
extern int futex_atomic_op_std(int, u32 __user *, int, int *);
15-
16-
extern size_t copy_from_user_pt(size_t, const void __user *, void *);
17-
extern size_t copy_to_user_pt(size_t, void __user *, const void *);
189
extern int futex_atomic_op_pt(int, u32 __user *, int, int *);
1910
extern int futex_atomic_cmpxchg_pt(u32 *, u32 __user *, u32, u32);
2011

‎arch/s390/lib/uaccess_pt.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ static __always_inline unsigned long __dat_user_addr(unsigned long uaddr,
211211
return 0;
212212
}
213213

214-
size_t copy_from_user_pt(size_t n, const void __user *from, void *to)
214+
static size_t copy_from_user_pt(size_t n, const void __user *from, void *to)
215215
{
216216
size_t rc;
217217

@@ -223,7 +223,7 @@ size_t copy_from_user_pt(size_t n, const void __user *from, void *to)
223223
return rc;
224224
}
225225

226-
size_t copy_to_user_pt(size_t n, void __user *to, const void *from)
226+
static size_t copy_to_user_pt(size_t n, void __user *to, const void *from)
227227
{
228228
if (segment_eq(get_fs(), KERNEL_DS))
229229
return copy_in_kernel(n, to, (void __user *) from);

0 commit comments

Comments
 (0)