Commit 1540aac5 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] checksum.h annotations

missing annotations in csum_partial_copy_from_user() on arm and ppc
Signed-off-by: default avatarAl Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 73fbf4f9
...@@ -37,7 +37,7 @@ unsigned int ...@@ -37,7 +37,7 @@ unsigned int
csum_partial_copy_nocheck(const char *src, char *dst, int len, int sum); csum_partial_copy_nocheck(const char *src, char *dst, int len, int sum);
unsigned int unsigned int
csum_partial_copy_from_user(const char *src, char *dst, int len, int sum, int *err_ptr); csum_partial_copy_from_user(const char __user *src, char *dst, int len, int sum, int *err_ptr);
/* /*
* This is the old (and unsafe) way of doing checksums, a warning message will * This is the old (and unsafe) way of doing checksums, a warning message will
......
...@@ -33,7 +33,7 @@ extern unsigned int csum_partial_copy_generic(const char *src, char *dst, ...@@ -33,7 +33,7 @@ extern unsigned int csum_partial_copy_generic(const char *src, char *dst,
int *src_err, int *dst_err); int *src_err, int *dst_err);
#define csum_partial_copy_from_user(src, dst, len, sum, errp) \ #define csum_partial_copy_from_user(src, dst, len, sum, errp) \
csum_partial_copy_generic((src), (dst), (len), (sum), (errp), NULL) csum_partial_copy_generic((__force void *)(src), (dst), (len), (sum), (errp), NULL)
/* FIXME: this needs to be written to really do no check -- Cort */ /* FIXME: this needs to be written to really do no check -- Cort */
#define csum_partial_copy_nocheck(src, dst, len, sum) \ #define csum_partial_copy_nocheck(src, dst, len, sum) \
......
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