powerpc: Use the new generic strncpy_from_user() and strnlen_user()
authorPaul Mackerras <paulus@samba.org>
Mon, 28 May 2012 03:03:47 +0000 (13:03 +1000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 28 May 2012 04:00:07 +0000 (21:00 -0700)
commit1629372caaaf7ef744d3b983be56b99468a68ff8
tree8d3cc2b69ba7b2626b2fe1b3de3ce2a19e45f524
parent69ea6405980f217557b6a58f70ff60d8d88519a5
powerpc: Use the new generic strncpy_from_user() and strnlen_user()

This is much the same as for SPARC except that we can do the find_zero()
function more efficiently using the count-leading-zeroes instructions.
Tested on 32-bit and 64-bit PowerPC.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/powerpc/Kconfig
arch/powerpc/include/asm/uaccess.h
arch/powerpc/include/asm/word-at-a-time.h [new file with mode: 0644]
arch/powerpc/kernel/ppc_ksyms.c
arch/powerpc/lib/string.S