From: Will Deacon Date: Wed, 6 Nov 2013 17:20:22 +0000 (+0000) Subject: arm64: use generic strnlen_user and strncpy_from_user functions X-Git-Tag: v3.14-rc1~153^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12a0ef7b0ac38677bd2d85f33df5ca0a57868819;p=pandora-kernel.git 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 Signed-off-by: Catalin Marinas --- Reading git-diff-tree failed