aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc/include/asm/checksum.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2020-02-18 13:01:02 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2020-05-29 16:11:49 -0400
commit77a8710ba7ef7ffcb71f0618bddf78c1b04f01d3 (patch)
treeda070d513882510df04191e3c3bda35473fcd328 /arch/parisc/include/asm/checksum.h
parentalpha: turn csum_partial_copy_from_user() into csum_and_copy_from_user() (diff)
downloadlinux-dev-77a8710ba7ef7ffcb71f0618bddf78c1b04f01d3.tar.xz
linux-dev-77a8710ba7ef7ffcb71f0618bddf78c1b04f01d3.zip
parisc: turn csum_partial_copy_from_user() into csum_and_copy_from_user()
Already has the right semantics. Incidentally. failing copy_from_user() zeroes the tail of destination - no need to repeat that manually Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/parisc/include/asm/checksum.h')
-rw-r--r--arch/parisc/include/asm/checksum.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/parisc/include/asm/checksum.h b/arch/parisc/include/asm/checksum.h
index c1c22819a04d..7c69ce9634c7 100644
--- a/arch/parisc/include/asm/checksum.h
+++ b/arch/parisc/include/asm/checksum.h
@@ -26,11 +26,12 @@ extern __wsum csum_partial(const void *, int, __wsum);
*/
extern __wsum csum_partial_copy_nocheck(const void *, void *, int, __wsum);
+#define _HAVE_ARCH_COPY_AND_CSUM_FROM_USER
/*
* this is a new version of the above that records errors it finds in *errp,
* but continues and zeros the rest of the buffer.
*/
-extern __wsum csum_partial_copy_from_user(const void __user *src,
+extern __wsum csum_and_copy_from_user(const void __user *src,
void *dst, int len, __wsum sum, int *errp);
/*