Commit 0645b245 authored by Eric Biggers's avatar Eric Biggers
Browse files

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: default avatarArd Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20250208175647.12333-1-ebiggers@kernel.org


Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
parent 8522104f
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -69,12 +69,6 @@ static void __exit crc_t10dif_arm_exit(void)
}
module_exit(crc_t10dif_arm_exit);

bool crc_t10dif_is_optimized(void)
{
	return static_key_enabled(&have_neon);
}
EXPORT_SYMBOL(crc_t10dif_is_optimized);

MODULE_AUTHOR("Ard Biesheuvel <ard.biesheuvel@linaro.org>");
MODULE_DESCRIPTION("Accelerated CRC-T10DIF using ARM NEON and Crypto Extensions");
MODULE_LICENSE("GPL v2");
+0 −6
Original line number Diff line number Diff line
@@ -70,12 +70,6 @@ static void __exit crc_t10dif_arm64_exit(void)
}
module_exit(crc_t10dif_arm64_exit);

bool crc_t10dif_is_optimized(void)
{
	return static_key_enabled(&have_asimd);
}
EXPORT_SYMBOL(crc_t10dif_is_optimized);

MODULE_AUTHOR("Ard Biesheuvel <ard.biesheuvel@linaro.org>");
MODULE_DESCRIPTION("CRC-T10DIF using arm64 NEON and Crypto Extensions");
MODULE_LICENSE("GPL v2");
+0 −6
Original line number Diff line number Diff line
@@ -78,12 +78,6 @@ static void __exit crc_t10dif_powerpc_exit(void)
}
module_exit(crc_t10dif_powerpc_exit);

bool crc_t10dif_is_optimized(void)
{
	return static_key_enabled(&have_vec_crypto);
}
EXPORT_SYMBOL(crc_t10dif_is_optimized);

MODULE_AUTHOR("Daniel Axtens <dja@axtens.net>");
MODULE_DESCRIPTION("CRCT10DIF using vector polynomial multiply-sum instructions");
MODULE_LICENSE("GPL");
+0 −6
Original line number Diff line number Diff line
@@ -41,11 +41,5 @@ static void __exit crc_t10dif_x86_exit(void)
}
module_exit(crc_t10dif_x86_exit);

bool crc_t10dif_is_optimized(void)
{
	return static_key_enabled(&have_pclmulqdq);
}
EXPORT_SYMBOL(crc_t10dif_is_optimized);

MODULE_DESCRIPTION("CRC-T10DIF using PCLMULQDQ instructions");
MODULE_LICENSE("GPL");
+0 −9
Original line number Diff line number Diff line
@@ -19,13 +19,4 @@ static inline u16 crc_t10dif(const u8 *p, size_t len)
	return crc_t10dif_update(0, p, len);
}

#if IS_ENABLED(CONFIG_CRC_T10DIF_ARCH)
bool crc_t10dif_is_optimized(void);
#else
static inline bool crc_t10dif_is_optimized(void)
{
	return false;
}
#endif

#endif