25 May 08:24
[PATCH 1/1] openrisc: use generic strncpy_from_user
Jonas Bonn <jonas <at> southpole.se>
2012-05-25 06:24:49 GMT
2012-05-25 06:24:49 GMT
As per commits 2922585b93294d47172a765115e0dbc1bfe1be19
("lib: Sparc's strncpy_from_user is generic enough, move under lib/"),
92ae03f2ef99fbc23bfa9080d6b58f25227bd7ef ("x86: merge 32/64-bit versions
of 'strncpy_from_user()' and speed it up"), and corresponding
discussion on linux-arch.
Signed-off-by: Jonas Bonn <jonas <at> southpole.se>
---
Hi Linus,
Here's a single patch update to the OpenRISC arch to use the new
strncpy_from_user implementation. Hope it's ok to send it as a
single patch and not as a pull request; let me know otherwise.
Thanks,
Jonas
arch/openrisc/Kconfig | 1 +
arch/openrisc/include/asm/uaccess.h | 10 ++-----
arch/openrisc/lib/string.S | 52 -----------------------------------
3 files changed, 4 insertions(+), 59 deletions(-)
diff --git a/arch/openrisc/Kconfig b/arch/openrisc/Kconfig
index da4ccd1..ee4d124 100644
--- a/arch/openrisc/Kconfig
+++ b/arch/openrisc/Kconfig
@@ -19,6 +19,7 @@ config OPENRISC
select GENERIC_CPU_DEVICES
(Continue reading)
RSS Feed