Commit a853f20d authored by Pawel Sikora's avatar Pawel Sikora Committed by Linus Torvalds

[PATCH] final csum_and_copy_from_user gcc4 warning fixes

The build is clean now.
parent 8aa11989
......@@ -47,7 +47,7 @@ unsigned int csum_partial_copy_from_user(const unsigned char __user *src, unsign
int len, int sum, int *err_ptr)
{
might_sleep();
return csum_partial_copy_generic((__force char *)src, dst,
return csum_partial_copy_generic((__force unsigned char *)src, dst,
len, sum, err_ptr, NULL);
}
......@@ -181,7 +181,7 @@ static __inline__ unsigned int csum_and_copy_to_user(const unsigned char *src,
{
might_sleep();
if (access_ok(VERIFY_WRITE, dst, len))
return csum_partial_copy_generic(src, (__force char *)dst, len, sum, NULL, err_ptr);
return csum_partial_copy_generic(src, (__force unsigned char *)dst, len, sum, NULL, err_ptr);
if (len)
*err_ptr = -EFAULT;
......
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