* [PATCH] crc-t10dif: Replace string names with CRC_T10DIF_STRING
@ 2020-04-20 11:23 Yunfeng Ye
0 siblings, 0 replies; only message in thread
From: Yunfeng Ye @ 2020-04-20 11:23 UTC (permalink / raw)
To: gregkh, yeyunfeng, herbert, ebiggers, alexios.zavras, tglx, linux-kernel
Cc: hushiyuan, hewenliang4
The commit b76377543b73 ("crc-t10dif: Pick better transform if one becomes
available") add the macro CRC_T10DIF_STRING, so it's better to use
CRC_T10DIF_STRING instead of the "crct10dif" names.
Signed-off-by: Yunfeng Ye <yeyunfeng@huawei.com>
---
lib/crc-t10dif.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/crc-t10dif.c b/lib/crc-t10dif.c
index 8cc01a603416..87a081f7e662 100644
--- a/lib/crc-t10dif.c
+++ b/lib/crc-t10dif.c
@@ -37,7 +37,7 @@ static int crc_t10dif_rehash(struct notifier_block *self, unsigned long val, voi
mutex_unlock(&crc_t10dif_mutex);
return 0;
}
- new = crypto_alloc_shash("crct10dif", 0, 0);
+ new = crypto_alloc_shash(CRC_T10DIF_STRING, 0, 0);
if (IS_ERR(new)) {
mutex_unlock(&crc_t10dif_mutex);
return 0;
@@ -87,7 +87,7 @@ __u16 crc_t10dif(const unsigned char *buffer, size_t len)
static int __init crc_t10dif_mod_init(void)
{
crypto_register_notifier(&crc_t10dif_nb);
- crct10dif_tfm = crypto_alloc_shash("crct10dif", 0, 0);
+ crct10dif_tfm = crypto_alloc_shash(CRC_T10DIF_STRING, 0, 0);
if (IS_ERR(crct10dif_tfm)) {
static_key_slow_inc(&crct10dif_fallback);
crct10dif_tfm = NULL;
--
1.8.3.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-04-20 11:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-20 11:23 [PATCH] crc-t10dif: Replace string names with CRC_T10DIF_STRING Yunfeng Ye
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).