diff options
Diffstat (limited to 'include/asm-alpha/checksum.h')
-rw-r--r-- | include/asm-alpha/checksum.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-alpha/checksum.h b/include/asm-alpha/checksum.h index 26c672521..6cf76c5a7 100644 --- a/include/asm-alpha/checksum.h +++ b/include/asm-alpha/checksum.h @@ -44,9 +44,16 @@ unsigned int csum_partial_copy(const char *src, char *dst, int len, unsigned int /* * the same as csum_partial, but copies from user space (but on the alpha * we have just one address space, so this is identical to the above) + * + * this is obsolete and will go away. */ #define csum_partial_copy_fromuser csum_partial_copy +/* + * this is a new version of the above that records errors it finds in *errp, + * but continues and zeros the rest of the buffer. + */ +unsigned int csum_partial_copy_from_user(const char *src, char *dst, int len, unsigned int sum, int *errp); /* * this routine is used for miscellaneous IP-like checksums, mainly |