hexagon: Use raw_copy_to_user
PATCH 1/1 hexagon: Use raw_copy_to_user
Commit ac4691fac8ad ("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'
--- arch/hexagon/mm/uaccess.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
arch/hexagon/mm/uaccess.c +2 -3
@@ -37,15 +37,14 @@ __kernel_size_t __clear_user_hexagon(void __user *dest, unsigned long count)long uncleared;while (count >PAGE_SIZE ) { - uncleared =__copy_to_user_hexagon (dest, &empty_zero_page, -PAGE_SIZE ); + uncleared =raw_copy_to_user (dest, &empty_zero_page,PAGE_SIZE );if (uncleared)return count - (PAGE_SIZE - uncleared); count -=PAGE_SIZE ; dest +=PAGE_SIZE ; }if (count) - count =__copy_to_user_hexagon (dest, &empty_zero_page, count); + count =raw_copy_to_user (dest, &empty_zero_page, count);return count; }
Signature · 1 line
2.7.4
Quoted 11 lines · Guenter Roeck
Commit
ac4691fac8ad("hexagon: switch toRAW_COPY_USER") replaced__copy_to_user_hexagon()withraw_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 ac4691fac8ad ("hexagon: switch to RAW_COPY_USER")Cc Al Viro <[email protected]>Signed-off-by Guenter Roeck <[email protected]>
ping ....
Quoted 38 lines · Guenter Roeck
Commit
ac4691fac8ad("hexagon: switch toRAW_COPY_USER") replaced__copy_to_user_hexagon()withraw_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 ac4691fac8ad ("hexagon: switch to RAW_COPY_USER")Cc Al Viro <[email protected]>Signed-off-by Guenter Roeck <[email protected]>Acked-by Al Viro <[email protected]>--- arch/hexagon/mm/uaccess.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)arch/hexagon/mm/uaccess.c +2
-3@@ -37,15 +37,14 @@ __kernel_size_t __clear_user_hexagon(void __user *dest, unsigned long count)long uncleared;while (count >PAGE_SIZE ) { - uncleared =__copy_to_user_hexagon (dest, &empty_zero_page, -PAGE_SIZE ); + uncleared =raw_copy_to_user (dest, &empty_zero_page,PAGE_SIZE );if (uncleared)return count - (PAGE_SIZE - uncleared); count -=PAGE_SIZE ; dest +=PAGE_SIZE ; }if (count) - count =__copy_to_user_hexagon (dest, &empty_zero_page, count); + count =raw_copy_to_user (dest, &empty_zero_page, count);return count; }
Richard Kuo
Acked-byQuoted 39 lines · Guenter Roeck
ping ....
Quoted 36 lines · Guenter Roeck
Commit
ac4691fac8ad("hexagon: switch toRAW_COPY_USER") replaced__copy_to_user_hexagon()withraw_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 ac4691fac8ad ("hexagon: switch to RAW_COPY_USER")Cc Al Viro <[email protected]>Signed-off-by Guenter Roeck <[email protected]>Acked-by Al Viro <[email protected]>--- arch/hexagon/mm/uaccess.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)arch/hexagon/mm/uaccess.c +2
-3@@ -37,15 +37,14 @@ __kernel_size_t __clear_user_hexagon(void __user *dest, unsigned long count)long uncleared;while (count >PAGE_SIZE ) { - uncleared =__copy_to_user_hexagon (dest, &empty_zero_page, -PAGE_SIZE ); + uncleared =raw_copy_to_user (dest, &empty_zero_page,PAGE_SIZE );if (uncleared)return count - (PAGE_SIZE - uncleared); count -=PAGE_SIZE ; dest +=PAGE_SIZE ; }if (count) - count =__copy_to_user_hexagon (dest, &empty_zero_page, count); + count =raw_copy_to_user (dest, &empty_zero_page, count);
Quoted 6 lines
arch/hexagon/mm/uaccess.c __kernel_size_t __clear_user_hexagon(void __user *dest, unsigned long count) · line 50
Quoted 2 lines
arch/hexagon/mm/uaccess.c +0
-0return count; }--
To unsubscribe from this list: send the line "unsubscribe linux-hexagon" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Thanks!
Signature · 3 lines
Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project
Hi Richard,
Quoted 40 lines · Richard Kuo
Quoted 39 lines · Guenter Roeck
ping ....
Quoted 36 lines · Guenter Roeck
Commit
ac4691fac8ad("hexagon: switch toRAW_COPY_USER") replaced__copy_to_user_hexagon()withraw_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 ac4691fac8ad ("hexagon: switch to RAW_COPY_USER")Cc Al Viro <[email protected]>Signed-off-by Guenter Roeck <[email protected]>Acked-by Al Viro <[email protected]>--- arch/hexagon/mm/uaccess.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)arch/hexagon/mm/uaccess.c +2
-3@@ -37,15 +37,14 @@ __kernel_size_t __clear_user_hexagon(void __user *dest, unsigned long count)long uncleared;while (count >PAGE_SIZE ) { - uncleared =__copy_to_user_hexagon (dest, &empty_zero_page, -PAGE_SIZE ); + uncleared =raw_copy_to_user (dest, &empty_zero_page,PAGE_SIZE );if (uncleared)return count - (PAGE_SIZE - uncleared); count -=PAGE_SIZE ; dest +=PAGE_SIZE ; }if (count) - count =__copy_to_user_hexagon (dest, &empty_zero_page, count); + count =raw_copy_to_user (dest, &empty_zero_page, count);
Quoted 9 lines
Quoted 6 lines
arch/hexagon/mm/uaccess.c __kernel_size_t __clear_user_hexagon(void __user *dest, unsigned long count) · line 50
Quoted 2 lines
arch/hexagon/mm/uaccess.c +0
-0return count; }--
To unsubscribe from this list: send the line "unsubscribe linux-hexagon" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.htmlAcked-by Richard Kuo <[email protected]>
Do you want me to send it to Linus ?
Thanks,
Guenter