diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2020-07-19 21:56:07 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2020-08-20 15:45:22 -0400 |
commit | daf52375c19feb4397cfd883302a7c907de2d6ad (patch) | |
tree | d8b45999cca84afbc0065cc2fc16aa7abddd035d /arch/x86/include/asm/checksum_64.h | |
parent | fdf8bee96f9aeaac4559725c2dfae6e1bd7b7043 (diff) | |
download | linux-daf52375c19feb4397cfd883302a7c907de2d6ad.tar.bz2 |
amd64: switch csum_partial_copy_generic() to new calling conventions
... and fold handling of misaligned case into it.
Implementation note: we stash the "will we need to rol8 the sum in the end"
flag into the MSB of %rcx (the lower 32 bits are used for length); the rest
is pretty straightforward.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/x86/include/asm/checksum_64.h')
-rw-r--r-- | arch/x86/include/asm/checksum_64.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/x86/include/asm/checksum_64.h b/arch/x86/include/asm/checksum_64.h index 9af3aed54c6b..407beebadaf4 100644 --- a/arch/x86/include/asm/checksum_64.h +++ b/arch/x86/include/asm/checksum_64.h @@ -130,10 +130,7 @@ static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, extern __wsum csum_partial(const void *buff, int len, __wsum sum); /* Do not call this directly. Use the wrappers below */ -extern __visible __wsum csum_partial_copy_generic(const void *src, const void *dst, - int len, __wsum sum, - int *src_err_ptr, int *dst_err_ptr); - +extern __visible __wsum csum_partial_copy_generic(const void *src, void *dst, int len); extern __wsum csum_and_copy_from_user(const void __user *src, void *dst, int len); extern __wsum csum_and_copy_to_user(const void *src, void __user *dst, int len); |