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 /lib/crc32.c | |
parent | c64e6570b48ab18675d00344fc3c1f13a86989b5 (diff) |
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 'lib/crc32.c')
-rw-r--r-- | lib/crc32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/crc32.c b/lib/crc32.c index 554ef6827b80..fddd424ff224 100644 --- a/lib/crc32.c +++ b/lib/crc32.c @@ -45,13 +45,13 @@ u32 crc32_le_base(u32 crc, const u8 *p, size_t len) } EXPORT_SYMBOL(crc32_le_base); -u32 crc32c_le_base(u32 crc, const u8 *p, size_t len) +u32 crc32c_base(u32 crc, const u8 *p, size_t len) { while (len--) crc = (crc >> 8) ^ crc32ctable_le[(crc & 255) ^ *p++]; return crc; } -EXPORT_SYMBOL(crc32c_le_base); +EXPORT_SYMBOL(crc32c_base); /* * This multiplies the polynomials x and y modulo the given modulus. |