Commit 4d801cca authored by Guenter Roeck's avatar Guenter Roeck

hexagon: Use raw_copy_to_user

Commit ac4691fa ("hexagon: switch to RAW_COPY_USER") replaced
__copy_to_user_hexagon() with raw_copy_to_user(), but did not catch
all callers, resulting in the following build error.

arch/hexagon/mm/uaccess.c: In function '__clear_user_hexagon':
arch/hexagon/mm/uaccess.c:40:3: error:
	implicit declaration of function '__copy_to_user_hexagon'

Fixes: ac4691fa ("hexagon: switch to RAW_COPY_USER")
Cc: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Acked-by: default avatarRichard Kuo <rkuo@codeaurora.org>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 5faab9e0
...@@ -37,15 +37,14 @@ __kernel_size_t __clear_user_hexagon(void __user *dest, unsigned long count) ...@@ -37,15 +37,14 @@ __kernel_size_t __clear_user_hexagon(void __user *dest, unsigned long count)
long uncleared; long uncleared;
while (count > PAGE_SIZE) { while (count > PAGE_SIZE) {
uncleared = __copy_to_user_hexagon(dest, &empty_zero_page, uncleared = raw_copy_to_user(dest, &empty_zero_page, PAGE_SIZE);
PAGE_SIZE);
if (uncleared) if (uncleared)
return count - (PAGE_SIZE - uncleared); return count - (PAGE_SIZE - uncleared);
count -= PAGE_SIZE; count -= PAGE_SIZE;
dest += PAGE_SIZE; dest += PAGE_SIZE;
} }
if (count) if (count)
count = __copy_to_user_hexagon(dest, &empty_zero_page, count); count = raw_copy_to_user(dest, &empty_zero_page, count);
return count; return count;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment