Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3609339ybz; Mon, 20 Apr 2020 06:14:57 -0700 (PDT) X-Google-Smtp-Source: APiQypKr2XGU+7hp10Rl6gFwkGHurUAiNfBqJZ7eascC8ytRtB8DVkcJg/Zj1vteXKhfAT5uq/q6 X-Received: by 2002:a17:907:2142:: with SMTP id rk2mr16428602ejb.356.1587388496945; Mon, 20 Apr 2020 06:14:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587388496; cv=none; d=google.com; s=arc-20160816; b=j79Bco+YSzBP5abTAfXb5NRqcm5Xguy6cQTH1U7H6Xgd8MtaWJE1UrPEk1g8jyyiFd IQ9gOPokux9Tuu/Fm30Fh0Z9jzL94Fpus9BKWejpQE0tA8ekdNsDRqHSKY4LhZlR6V8v fFVxzyKowrFPOhdugnImmudbKKMs6pueqoPSB0Ed+I+V0kZTRUh7s4QTQfEumNL79qyi yiMo/+cIdNkZcltEOGUMNlQJjjXEdH9W9TFwKNlQQc5GUK5za/rc5fs38YtSFZtA4Xad +PlQvRdgdctaudKhpYblU0A4syR7JOdoCrTFLE+YpLZDz3dsCOVn9C7nLkCHDghLJKEr oj3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:subject :from:cc:to; bh=rGRW+A1DYr9OKA5VYXLBFCmhRag1q8laIK9DTDYQxUk=; b=JJVcp0I4aUHlCFWHVscTwy6+KppAwaDPQWiTjiE7XCHZrQ1i8iANVV4rBnxfGI4ptm AIQtWWjzY0/plEqISxn0livgWySW3JwBTsfqLHf50ZbR2uZgVkj0PxTOuGltqLzScSMM spIXLCKi/DArVsRg33nDR2dyb5am5UmXDAxQOc+WHdYrSpWDG12jy3bOdkS7NOee+EUV XH3zlijyqle6ionp+pNmbe5xlqAHP2mNSXDJUw2J8Jaee4qdWi/+dXn+7dmXhefvy8gm 0RUacapNW4JMBPIHtw9QPkOChnnkPqrc+SuRrNBbFLS3s6pypp+jBkCyybVQ5wA2XhOt 4P2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c2si543306ejf.471.2020.04.20.06.14.32; Mon, 20 Apr 2020 06:14:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726121AbgDTLYU (ORCPT + 99 others); Mon, 20 Apr 2020 07:24:20 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:48562 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725971AbgDTLYT (ORCPT ); Mon, 20 Apr 2020 07:24:19 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id E4C0EFA7B7CD3C846ACC; Mon, 20 Apr 2020 19:24:17 +0800 (CST) Received: from [127.0.0.1] (10.166.215.237) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Mon, 20 Apr 2020 19:24:07 +0800 To: , , , , , , CC: , From: Yunfeng Ye Subject: [PATCH] crc-t10dif: Replace string names with CRC_T10DIF_STRING Message-ID: <9ab205ba-1bcb-f01a-a8b4-a7736791fadc@huawei.com> Date: Mon, 20 Apr 2020 19:23:55 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.166.215.237] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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