mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
kill strlen_user()
no callers, no consistent semantics, no sane way to use it... Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
2ea659a9ef
commit
8298525839
32 changed files with 2 additions and 465 deletions
|
|
@ -511,22 +511,6 @@ unsigned long __clear_user(void __user *mem, unsigned long len);
|
|||
*/
|
||||
unsigned long clear_user(void __user *mem, unsigned long len);
|
||||
|
||||
/**
|
||||
* strlen_user: - Get the size of a string in user space.
|
||||
* @str: The string to measure.
|
||||
*
|
||||
* Context: User context only. This function may sleep if pagefaults are
|
||||
* enabled.
|
||||
*
|
||||
* Get the size of a NUL-terminated string in user space.
|
||||
*
|
||||
* Returns the size of the string INCLUDING the terminating NUL.
|
||||
* On exception, returns 0.
|
||||
*
|
||||
* If there is a limit on the length of a valid string, you may wish to
|
||||
* consider using strnlen_user() instead.
|
||||
*/
|
||||
#define strlen_user(str) strnlen_user(str, ~0UL >> 1)
|
||||
long strnlen_user(const char __user *str, long n);
|
||||
|
||||
#endif /* _ASM_M32R_UACCESS_H */
|
||||
|
|
|
|||
Loading…
Reference in a new issue