summaryrefslogtreecommitdiffstats
path: root/arch/sparc/Kconfig
diff options
context:
space:
mode:
authorDavid S. Miller2012-05-24 22:12:28 +0200
committerDavid S. Miller2012-05-24 22:12:28 +0200
commit2922585b93294d47172a765115e0dbc1bfe1be19 (patch)
treeacb4436987d24b2a3fb3cef02097eefbc4762bbf /arch/sparc/Kconfig
parentkernel: Move REPEAT_BYTE definition into linux/kernel.h (diff)
downloadkernel-qcow2-linux-2922585b93294d47172a765115e0dbc1bfe1be19.tar.gz
kernel-qcow2-linux-2922585b93294d47172a765115e0dbc1bfe1be19.tar.xz
kernel-qcow2-linux-2922585b93294d47172a765115e0dbc1bfe1be19.zip
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>
Diffstat (limited to 'arch/sparc/Kconfig')
-rw-r--r--arch/sparc/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig
index 051af37f2b49..22474233205b 100644
--- a/arch/sparc/Kconfig
+++ b/arch/sparc/Kconfig
@@ -32,6 +32,7 @@ config SPARC
select HAVE_NMI_WATCHDOG if SPARC64
select HAVE_BPF_JIT
select GENERIC_SMP_IDLE_THREAD
+ select GENERIC_STRNCPY_FROM_USER
config SPARC32
def_bool !64BIT