diff options
| author | Eric Biggers <ebiggers@google.com> | 2025-02-07 18:49:11 -0800 |
|---|---|---|
| committer | Eric Biggers <ebiggers@google.com> | 2025-02-08 20:06:30 -0800 |
| commit | 68ea3c2ae0affe68aefab27d55c82be5a45ad882 (patch) | |
| tree | d8caad9ccba976a98d08a8b2231c7c668b9fc7a0 /crypto/crc32c_generic.c | |
| parent | lib/crc32: rename __crc32c_le_combine() to crc32c_combine() (diff) | |
| download | linux-68ea3c2ae0affe68aefab27d55c82be5a45ad882.tar.gz linux-68ea3c2ae0affe68aefab27d55c82be5a45ad882.zip | |
lib/crc32: remove "_le" from crc32c base and arch functions
Following the standardization on crc32c() as the lib entry point for the
Castagnoli CRC32 instead of the previous mix of crc32c(), crc32c_le(),
and __crc32c_le(), make the same change to the underlying base and arch
functions that implement it.
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20250208024911.14936-7-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>
Diffstat (limited to 'crypto/crc32c_generic.c')
| -rw-r--r-- | crypto/crc32c_generic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/crc32c_generic.c b/crypto/crc32c_generic.c index 770533d19b81..b1a36d32dc50 100644 --- a/crypto/crc32c_generic.c +++ b/crypto/crc32c_generic.c @@ -85,7 +85,7 @@ static int chksum_update(struct shash_desc *desc, const u8 *data, { struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); - ctx->crc = crc32c_le_base(ctx->crc, data, length); + ctx->crc = crc32c_base(ctx->crc, data, length); return 0; } @@ -108,7 +108,7 @@ static int chksum_final(struct shash_desc *desc, u8 *out) static int __chksum_finup(u32 *crcp, const u8 *data, unsigned int len, u8 *out) { - put_unaligned_le32(~crc32c_le_base(*crcp, data, len), out); + put_unaligned_le32(~crc32c_base(*crcp, data, len), out); return 0; } |
