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/crc-t10dif: remove crc_t10dif_is_optimized()

With the "crct10dif" algorithm having been removed from the crypto API,
crc_t10dif_is_optimized() is no longer used.

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

-33
-6
arch/arm/lib/crc-t10dif-glue.c
··· 69 69 } 70 70 module_exit(crc_t10dif_arm_exit); 71 71 72 - bool crc_t10dif_is_optimized(void) 73 - { 74 - return static_key_enabled(&have_neon); 75 - } 76 - EXPORT_SYMBOL(crc_t10dif_is_optimized); 77 - 78 72 MODULE_AUTHOR("Ard Biesheuvel <ard.biesheuvel@linaro.org>"); 79 73 MODULE_DESCRIPTION("Accelerated CRC-T10DIF using ARM NEON and Crypto Extensions"); 80 74 MODULE_LICENSE("GPL v2");
-6
arch/arm64/lib/crc-t10dif-glue.c
··· 70 70 } 71 71 module_exit(crc_t10dif_arm64_exit); 72 72 73 - bool crc_t10dif_is_optimized(void) 74 - { 75 - return static_key_enabled(&have_asimd); 76 - } 77 - EXPORT_SYMBOL(crc_t10dif_is_optimized); 78 - 79 73 MODULE_AUTHOR("Ard Biesheuvel <ard.biesheuvel@linaro.org>"); 80 74 MODULE_DESCRIPTION("CRC-T10DIF using arm64 NEON and Crypto Extensions"); 81 75 MODULE_LICENSE("GPL v2");
-6
arch/powerpc/lib/crc-t10dif-glue.c
··· 78 78 } 79 79 module_exit(crc_t10dif_powerpc_exit); 80 80 81 - bool crc_t10dif_is_optimized(void) 82 - { 83 - return static_key_enabled(&have_vec_crypto); 84 - } 85 - EXPORT_SYMBOL(crc_t10dif_is_optimized); 86 - 87 81 MODULE_AUTHOR("Daniel Axtens <dja@axtens.net>"); 88 82 MODULE_DESCRIPTION("CRCT10DIF using vector polynomial multiply-sum instructions"); 89 83 MODULE_LICENSE("GPL");
-6
arch/x86/lib/crc-t10dif-glue.c
··· 41 41 } 42 42 module_exit(crc_t10dif_x86_exit); 43 43 44 - bool crc_t10dif_is_optimized(void) 45 - { 46 - return static_key_enabled(&have_pclmulqdq); 47 - } 48 - EXPORT_SYMBOL(crc_t10dif_is_optimized); 49 - 50 44 MODULE_DESCRIPTION("CRC-T10DIF using PCLMULQDQ instructions"); 51 45 MODULE_LICENSE("GPL");
-9
include/linux/crc-t10dif.h
··· 19 19 return crc_t10dif_update(0, p, len); 20 20 } 21 21 22 - #if IS_ENABLED(CONFIG_CRC_T10DIF_ARCH) 23 - bool crc_t10dif_is_optimized(void); 24 - #else 25 - static inline bool crc_t10dif_is_optimized(void) 26 - { 27 - return false; 28 - } 29 - #endif 30 - 31 22 #endif