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/crypto: poly1305: Remove unused function poly1305_is_arch_optimized()

poly1305_is_arch_optimized() is unused, so remove it.

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

-41
-9
include/crypto/poly1305.h
··· 64 64 const u8 *src, unsigned int nbytes); 65 65 void poly1305_final(struct poly1305_desc_ctx *desc, u8 *digest); 66 66 67 - #if IS_ENABLED(CONFIG_CRYPTO_ARCH_HAVE_LIB_POLY1305) 68 - bool poly1305_is_arch_optimized(void); 69 - #else 70 - static inline bool poly1305_is_arch_optimized(void) 71 - { 72 - return false; 73 - } 74 - #endif 75 - 76 67 #endif
-7
lib/crypto/arm/poly1305-glue.c
··· 51 51 } 52 52 EXPORT_SYMBOL_GPL(poly1305_blocks_arch); 53 53 54 - bool poly1305_is_arch_optimized(void) 55 - { 56 - /* We always can use at least the ARM scalar implementation. */ 57 - return true; 58 - } 59 - EXPORT_SYMBOL(poly1305_is_arch_optimized); 60 - 61 54 static int __init arm_poly1305_mod_init(void) 62 55 { 63 56 if (IS_ENABLED(CONFIG_KERNEL_MODE_NEON) &&
-7
lib/crypto/arm64/poly1305-glue.c
··· 50 50 } 51 51 EXPORT_SYMBOL_GPL(poly1305_blocks_arch); 52 52 53 - bool poly1305_is_arch_optimized(void) 54 - { 55 - /* We always can use at least the ARM64 scalar implementation. */ 56 - return true; 57 - } 58 - EXPORT_SYMBOL(poly1305_is_arch_optimized); 59 - 60 53 static int __init neon_poly1305_mod_init(void) 61 54 { 62 55 if (cpu_have_named_feature(ASIMD))
-6
lib/crypto/mips/poly1305-glue.c
··· 23 23 const u32 nonce[4]); 24 24 EXPORT_SYMBOL_GPL(poly1305_emit_arch); 25 25 26 - bool poly1305_is_arch_optimized(void) 27 - { 28 - return true; 29 - } 30 - EXPORT_SYMBOL(poly1305_is_arch_optimized); 31 - 32 26 MODULE_DESCRIPTION("Poly1305 transform (MIPS accelerated"); 33 27 MODULE_LICENSE("GPL v2");
-6
lib/crypto/powerpc/poly1305-p10-glue.c
··· 72 72 } 73 73 EXPORT_SYMBOL_GPL(poly1305_emit_arch); 74 74 75 - bool poly1305_is_arch_optimized(void) 76 - { 77 - return static_key_enabled(&have_p10); 78 - } 79 - EXPORT_SYMBOL(poly1305_is_arch_optimized); 80 - 81 75 static int __init poly1305_p10_init(void) 82 76 { 83 77 if (cpu_has_feature(CPU_FTR_ARCH_31))
-6
lib/crypto/x86/poly1305_glue.c
··· 141 141 } 142 142 EXPORT_SYMBOL_GPL(poly1305_emit_arch); 143 143 144 - bool poly1305_is_arch_optimized(void) 145 - { 146 - return static_key_enabled(&poly1305_use_avx); 147 - } 148 - EXPORT_SYMBOL(poly1305_is_arch_optimized); 149 - 150 144 static int __init poly1305_simd_mod_init(void) 151 145 { 152 146 if (boot_cpu_has(X86_FEATURE_AVX) &&