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>
This commit is contained in:
David S. Miller
2012-05-24 13:12:28 -07:00
부모 446969084d
커밋 2922585b93
5개의 변경된 파일152개의 추가작업 그리고 144개의 파일을 삭제

파일 보기

@@ -16,6 +16,9 @@ config BITREVERSE
config RATIONAL
boolean
config GENERIC_STRNCPY_FROM_USER
bool
config GENERIC_FIND_FIRST_BIT
bool