]> git.baikalelectronics.ru Git - kernel.git/commit
lib: Sparc's strncpy_from_user is generic enough, move under lib/
authorDavid S. Miller <davem@davemloft.net>
Thu, 24 May 2012 20:12:28 +0000 (13:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 May 2012 20:12:28 +0000 (13:12 -0700)
commit4b2f79e5327a9b3a5fc8e31f3959a99caeea2c99
treeacb4436987d24b2a3fb3cef02097eefbc4762bbf
parentee498bbbd26c69d36ce9876dfa270adc912d53be
lib: Sparc's strncpy_from_user is generic enough, move under lib/

To use this, an architecture simply needs to:

1) Provide a user_addr_max() implementation via asm/uaccess.h

2) Add "select GENERIC_STRNCPY_FROM_USER" to their arch Kcnfig

3) Remove the existing strncpy_from_user() implementation and symbol
   exports their architecture had.

Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: David Howells <dhowells@redhat.com>
arch/sparc/Kconfig
arch/sparc/lib/usercopy.c
lib/Kconfig
lib/Makefile
lib/strncpy_from_user.c [new file with mode: 0644]