From: Linus Torvalds Date: Sat, 26 May 2012 17:14:39 +0000 (-0700) Subject: x86: use generic strncpy_from_user routine X-Git-Tag: v3.5-rc1~65^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ae73f2d53255c388d50bf83c1681112a6f9cba1;p=pandora-kernel.git x86: use generic strncpy_from_user routine The generic strncpy_from_user() is not really optimal, since it is designed to work on both little-endian and big-endian. And on little-endian you can simplify much of the logic to find the first zero byte, since little-endian arithmetic doesn't have to worry about the carry bit propagating into earlier bytes (only later bytes, which we don't care about). But I have patches to make the generic routines use the architecture- specific infrastructure, so that we can regain the little-endian optimizations. But before we do that, switch over to the generic routines to make the patches each do just one well-defined thing. Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed