Skip to content

Commit 0645b24

Browse files
committed
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Eric Biggers <[email protected]>
1 parent 8522104 commit 0645b24

File tree

5 files changed

+0
-33
lines changed

5 files changed

+0
-33
lines changed

arch/arm/lib/crc-t10dif-glue.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,6 @@ static void __exit crc_t10dif_arm_exit(void)
6969
}
7070
module_exit(crc_t10dif_arm_exit);
7171

72-
bool crc_t10dif_is_optimized(void)
73-
{
74-
return static_key_enabled(&have_neon);
75-
}
76-
EXPORT_SYMBOL(crc_t10dif_is_optimized);
77-
7872
MODULE_AUTHOR("Ard Biesheuvel <[email protected]>");
7973
MODULE_DESCRIPTION("Accelerated CRC-T10DIF using ARM NEON and Crypto Extensions");
8074
MODULE_LICENSE("GPL v2");

arch/arm64/lib/crc-t10dif-glue.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,6 @@ static void __exit crc_t10dif_arm64_exit(void)
7070
}
7171
module_exit(crc_t10dif_arm64_exit);
7272

73-
bool crc_t10dif_is_optimized(void)
74-
{
75-
return static_key_enabled(&have_asimd);
76-
}
77-
EXPORT_SYMBOL(crc_t10dif_is_optimized);
78-
7973
MODULE_AUTHOR("Ard Biesheuvel <[email protected]>");
8074
MODULE_DESCRIPTION("CRC-T10DIF using arm64 NEON and Crypto Extensions");
8175
MODULE_LICENSE("GPL v2");

arch/powerpc/lib/crc-t10dif-glue.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,6 @@ static void __exit crc_t10dif_powerpc_exit(void)
7878
}
7979
module_exit(crc_t10dif_powerpc_exit);
8080

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-
8781
MODULE_AUTHOR("Daniel Axtens <[email protected]>");
8882
MODULE_DESCRIPTION("CRCT10DIF using vector polynomial multiply-sum instructions");
8983
MODULE_LICENSE("GPL");

arch/x86/lib/crc-t10dif-glue.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,5 @@ static void __exit crc_t10dif_x86_exit(void)
4141
}
4242
module_exit(crc_t10dif_x86_exit);
4343

44-
bool crc_t10dif_is_optimized(void)
45-
{
46-
return static_key_enabled(&have_pclmulqdq);
47-
}
48-
EXPORT_SYMBOL(crc_t10dif_is_optimized);
49-
5044
MODULE_DESCRIPTION("CRC-T10DIF using PCLMULQDQ instructions");
5145
MODULE_LICENSE("GPL");

include/linux/crc-t10dif.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,4 @@ static inline u16 crc_t10dif(const u8 *p, size_t len)
1919
return crc_t10dif_update(0, p, len);
2020
}
2121

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-
3122
#endif

0 commit comments

Comments
 (0)