mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Acked-by: David Howells <[email protected]>
This commit is contained in:
parent
446969084d
commit
2922585b93
5 changed files with 152 additions and 144 deletions
|
|
@ -16,6 +16,9 @@ config BITREVERSE
|
|||
config RATIONAL
|
||||
boolean
|
||||
|
||||
config GENERIC_STRNCPY_FROM_USER
|
||||
bool
|
||||
|
||||
config GENERIC_FIND_FIRST_BIT
|
||||
bool
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue