Skip to content

Switching ARC to optimized generic strncpy_from_user

Vineet Gupta linux-arch linux-snps-arc lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v1 RFC4 patches 16 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2asm-generic/uaccess: don't define inline functions if noinline lib/* in useinclude/asm-generic/uaccess.h+8 -00 replies
2/2ARC: uaccess: use optimized generic __strnlen_user/__strncpy_from_userarch/arc/Kconfig arch/arc/include/asm/uaccess.h arch/arc/mm/extable.c+6 -1040 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] Switching ARC to optimized generic strncpy_from_user

Hi,

This series switches ARC to generic word-at-a-time interface.

I understand that going fwd, we may drop the inline versions altogether but this helps ARC code in the interim.

v2 <- v1
- Moved __strnlen_user/__strncpy_from_user to under ifdef gaurd [Arnd]
- Dropped the broken optimization patch [Linus]
- Folded 2 ARC patches into 1

Thx,
-Vineet

Vineet Gupta (2):
asm-generic/uaccess: don't define inline functions if noinline lib/*
in use
ARC: uaccess: use optimized generic __strnlen_user/__strncpy_from_user

 arch/arc/Kconfig               |  2 +
 arch/arc/include/asm/uaccess.h | 85 ++--------------------------------
 arch/arc/mm/extable.c          | 23 ---------
 include/asm-generic/uaccess.h  |  8 ++++
 4 files changed, 14 insertions(+), 104 deletions(-)
Signature · 1 line
2.20.1