diff options
author | Will Deacon <will.deacon@arm.com> | 2013-11-06 12:20:22 -0500 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2013-12-19 12:43:06 -0500 |
commit | 12a0ef7b0ac38677bd2d85f33df5ca0a57868819 (patch) | |
tree | 59b4be2d48b136aac65c7201a975a9463917e020 /arch/arm64/kernel | |
parent | 7158627686f02319c50c8d9d78f75d4c8d126ff2 (diff) |
arm64: use generic strnlen_user and strncpy_from_user functions
This patch implements the word-at-a-time interface for arm64 using the
same algorithm as ARM. We use the fls64 macro, which expands to a clz
instruction via a compiler builtin. Big-endian configurations make use
of the implementation from asm-generic.
With this implemented, we can replace our byte-at-a-time strnlen_user
and strncpy_from_user functions with the optimised generic versions.
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/kernel')
-rw-r--r-- | arch/arm64/kernel/arm64ksyms.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm64/kernel/arm64ksyms.c b/arch/arm64/kernel/arm64ksyms.c index e7ee770c0697..338b568cd8ae 100644 --- a/arch/arm64/kernel/arm64ksyms.c +++ b/arch/arm64/kernel/arm64ksyms.c | |||
@@ -29,13 +29,10 @@ | |||
29 | 29 | ||
30 | #include <asm/checksum.h> | 30 | #include <asm/checksum.h> |
31 | 31 | ||
32 | /* user mem (segment) */ | ||
33 | EXPORT_SYMBOL(__strnlen_user); | ||
34 | EXPORT_SYMBOL(__strncpy_from_user); | ||
35 | |||
36 | EXPORT_SYMBOL(copy_page); | 32 | EXPORT_SYMBOL(copy_page); |
37 | EXPORT_SYMBOL(clear_page); | 33 | EXPORT_SYMBOL(clear_page); |
38 | 34 | ||
35 | /* user mem (segment) */ | ||
39 | EXPORT_SYMBOL(__copy_from_user); | 36 | EXPORT_SYMBOL(__copy_from_user); |
40 | EXPORT_SYMBOL(__copy_to_user); | 37 | EXPORT_SYMBOL(__copy_to_user); |
41 | EXPORT_SYMBOL(__clear_user); | 38 | EXPORT_SYMBOL(__clear_user); |