Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

lib/crc32: drop leading underscores from __crc32c_le_base

Remove the leading underscores from __crc32c_le_base().

This is in preparation for adding crc32c_le_arch() and eventually
renaming __crc32c_le() to crc32c_le().

Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20241202010844.144356-2-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@google.com>

+9 -9
+1 -1
arch/arm64/lib/crc32-glue.c
··· 44 44 u32 __pure __crc32c_le(u32 crc, unsigned char const *p, size_t len) 45 45 { 46 46 if (!alternative_has_cap_likely(ARM64_HAS_CRC32)) 47 - return __crc32c_le_base(crc, p, len); 47 + return crc32c_le_base(crc, p, len); 48 48 49 49 if (len >= min_len && cpu_have_named_feature(PMULL) && crypto_simd_usable()) { 50 50 kernel_neon_begin();
+1 -1
arch/riscv/lib/crc32.c
··· 226 226 u32 __pure __crc32c_le(u32 crc, unsigned char const *p, size_t len) 227 227 { 228 228 return crc32_le_generic(crc, p, len, CRC32C_POLY_LE, 229 - CRC32C_POLY_QT_LE, __crc32c_le_base); 229 + CRC32C_POLY_QT_LE, crc32c_le_base); 230 230 } 231 231 232 232 static inline u32 crc32_be_unaligned(u32 crc, unsigned char const *p,
+4 -4
crypto/crc32c_generic.c
··· 85 85 { 86 86 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); 87 87 88 - ctx->crc = __crc32c_le_base(ctx->crc, data, length); 88 + ctx->crc = crc32c_le_base(ctx->crc, data, length); 89 89 return 0; 90 90 } 91 91 ··· 108 108 109 109 static int __chksum_finup(u32 *crcp, const u8 *data, unsigned int len, u8 *out) 110 110 { 111 - put_unaligned_le32(~__crc32c_le_base(*crcp, data, len), out); 111 + put_unaligned_le32(~crc32c_le_base(*crcp, data, len), out); 112 112 return 0; 113 113 } 114 114 ··· 200 200 static int __init crc32c_mod_init(void) 201 201 { 202 202 /* register the arch flavor only if it differs from the generic one */ 203 - return crypto_register_shashes(algs, 1 + (&__crc32c_le != &__crc32c_le_base)); 203 + return crypto_register_shashes(algs, 1 + (&__crc32c_le != &crc32c_le_base)); 204 204 } 205 205 206 206 static void __exit crc32c_mod_fini(void) 207 207 { 208 - crypto_unregister_shashes(algs, 1 + (&__crc32c_le != &__crc32c_le_base)); 208 + crypto_unregister_shashes(algs, 1 + (&__crc32c_le != &crc32c_le_base)); 209 209 } 210 210 211 211 subsys_initcall(crc32c_mod_init);
+1 -1
include/linux/crc32.h
··· 39 39 } 40 40 41 41 u32 __pure __crc32c_le(u32 crc, unsigned char const *p, size_t len); 42 - u32 __pure __crc32c_le_base(u32 crc, unsigned char const *p, size_t len); 42 + u32 __pure crc32c_le_base(u32 crc, unsigned char const *p, size_t len); 43 43 44 44 /** 45 45 * __crc32c_le_combine - Combine two crc32c check values into one. For two
+2 -2
lib/crc32.c
··· 207 207 u32 __pure crc32_le_base(u32, unsigned char const *, size_t) __alias(crc32_le); 208 208 EXPORT_SYMBOL(crc32_le_base); 209 209 210 - u32 __pure __crc32c_le_base(u32, unsigned char const *, size_t) __alias(__crc32c_le); 211 - EXPORT_SYMBOL(__crc32c_le_base); 210 + u32 __pure crc32c_le_base(u32, unsigned char const *, size_t) __alias(__crc32c_le); 211 + EXPORT_SYMBOL(crc32c_le_base); 212 212 213 213 u32 __pure crc32_be_base(u32, unsigned char const *, size_t) __alias(crc32_be); 214 214