Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1866919pxf; Fri, 12 Mar 2021 23:39:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJwn07ZWV3xM5H2Epy1wV+AyMpy/mhdg5wH4+enDZJxO4/Lq3t8iJc3BfUuPpnCfY3zYJvrR X-Received: by 2002:a17:906:f1d6:: with SMTP id gx22mr12841705ejb.59.1615621180980; Fri, 12 Mar 2021 23:39:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615621180; cv=none; d=google.com; s=arc-20160816; b=b3SXl/4LnAaPG+BvdwLDooi/AbuW6WvMwduF6WE1QjKzQs9cbOdIpnh0DqrKAyoaX0 O2IJuXfyYS86fuJWq3jNJgdcFftaJXFfLdMxITUycO3nBb+2uneTfxUhH8zohR2h3p+o BEFTlyOe3drD86LrPAiPJUnGHQKEYrlRUbmFCxar6s4iVgK8tiBtljeU+VNjYIEqIGvN US5qthyjJf0yhN1MSyqGDPkIW5L3GpJiMF/drDVyZoASFz/GA+JaWqGfHQBf7hDMofL2 ARd7McWpkxmgIrvjII2bIV0d046F6oyFUN0UgoEWkWTnANo/4V5RGvkQxRR+IfxD223g FGvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=D/zs5CtypLie1WhgrgFg3jiUYYlJCAJ7Z8A8Ht7RKVY=; b=dJ/8oGEYltr4YaEp+tJurUUDSMjrxKqRrKbQLRnA+3FlxwlKJCxb1YGWhmLqT2XPQD Q21WaQiBPcKFr5+kQxFSIl5/iiOX1StD0iANdIaxUTOU6BYeRtEw9pmtHnj4SPDJfnUq vo9lOlavDEQbgGExKu9goJPcv5Z/qokZ87s8Yf8Y4fcfyqC9w0ZDyf3NWgSMXpscrPF+ 760Br5f/EAso3kMaSynQtLcaCLaSJiG8avBzzcLPd9Eqx4fnW5RAeiW/IG7Ha4A+LKM4 WCYKFXJFOQlqRhJvt1/k3rZr9Ma0I5wPr1lLJxg/xB6BLvf9Axl52FmR5xfMfBo8ykoe 99zw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 a8si6005810edq.601.2021.03.12.23.39.17; Fri, 12 Mar 2021 23:39:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232992AbhCMHbd (ORCPT + 99 others); Sat, 13 Mar 2021 02:31:33 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:13512 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230349AbhCMHa5 (ORCPT ); Sat, 13 Mar 2021 02:30:57 -0500 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4DyDns0QBjzrTMZ; Sat, 13 Mar 2021 15:29:05 +0800 (CST) Received: from huawei.com (10.67.165.24) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.498.0; Sat, 13 Mar 2021 15:30:44 +0800 From: Longfang Liu To: , , CC: , Subject: [PATCH v4 1/3] crypto: hisilicon/sec - fixes a printing error Date: Sat, 13 Mar 2021 15:28:23 +0800 Message-ID: <1615620505-50018-2-git-send-email-liulongfang@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1615620505-50018-1-git-send-email-liulongfang@huawei.com> References: <1615620505-50018-1-git-send-email-liulongfang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org When the log is output here, the device has not been initialized yet. Signed-off-by: Longfang Liu --- drivers/crypto/hisilicon/sec2/sec_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/hisilicon/sec2/sec_crypto.c b/drivers/crypto/hisilicon/sec2/sec_crypto.c index f835514..2176e4d 100644 --- a/drivers/crypto/hisilicon/sec2/sec_crypto.c +++ b/drivers/crypto/hisilicon/sec2/sec_crypto.c @@ -546,7 +546,7 @@ static int sec_skcipher_init(struct crypto_skcipher *tfm) crypto_skcipher_set_reqsize(tfm, sizeof(struct sec_req)); ctx->c_ctx.ivsize = crypto_skcipher_ivsize(tfm); if (ctx->c_ctx.ivsize > SEC_IV_SIZE) { - dev_err(SEC_CTX_DEV(ctx), "get error skcipher iv size!\n"); + pr_err("get error skcipher iv size!\n"); return -EINVAL; } -- 2.8.1