Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3227805pxb; Sun, 7 Feb 2021 02:09:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJxWYyA1vAdJkYKTLI8NqE0BdoyRbC0UixATi2+O7T3c4I8I5S50z+7g8lM0eHrpDb5NPWge X-Received: by 2002:a05:6402:3495:: with SMTP id v21mr11868112edc.323.1612692583484; Sun, 07 Feb 2021 02:09:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612692583; cv=none; d=google.com; s=arc-20160816; b=DFZWIIBRdX3MaSqUiGYvDoep/N+11YXVR0Qu/xbPLLyI7O3stSmG8HIcQowM4pNnx4 JESoxwScDT6bVJmntwN7l7muX1rkFKIut+nyPHizYE1if+nXvDqHwD6VxDrUWCQyIj1h 0MaI/Scmw6gU++e2fJOHhe5Mkd+YbFekEmjWqc56cZAKS2fVJCOI8AqjZsMQ+FjqHNjt CT1A/Tz0q8jBypp8CDBZmrqphpjncbiOMWNgTRs28YUNkGtZV0RB6fqqxWzJ/6ERIZQy T/bL0uvhcyNqSIjU1Fy+bXOoO3Bw4Y/vCnORF73dLzU+XbOosEOkaLic+a0f2XaezYPb WDJg== 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=OG6FrM3YAUcWKFsY3c93S+dMpadKgWdG9mKFf3tmC0w=; b=uIakpWjmNlCOCeughfFWJsvoqLYbErzYZ6UxQbT2VC3UhNzkoAJPNZWudL5tzM8HPX oFRRbRPgu09ZYM3713vYhqtSDJNPC99h2b2HILqUHUy08u6jawN6nsg5oyJUhzY7aUii 2ViOYoIG86wMdcz1YO4cYzU9X6DJ/Evauq9eHgTqbCyYQLjMAsjPzjBWQFk+lPUBLIx6 nB+yQquVTsMapDSz6LAd7Eb2aP/b9P4u/wEihLRBtZk3462kbhv5lblh5bCrtSNLD7fd 5adeSf6BLss3OlKh+/h5m2FzNq51eMcCQXOFuLvjW23bWEes2rjStzTXRj0NHZIIb7A4 lgLQ== 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 ho9si1375417ejc.324.2021.02.07.02.09.20; Sun, 07 Feb 2021 02:09:43 -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 S229705AbhBGKHu (ORCPT + 99 others); Sun, 7 Feb 2021 05:07:50 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:12143 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229693AbhBGKHu (ORCPT ); Sun, 7 Feb 2021 05:07:50 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4DYPtJ5BQpz164sV; Sun, 7 Feb 2021 18:05:44 +0800 (CST) Received: from huawei.com (10.67.165.24) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.498.0; Sun, 7 Feb 2021 18:06:56 +0800 From: Longfang Liu To: , , CC: , Subject: [PATCH v2 3/3] crypto: hisilicon/sec - fixes shash test error Date: Sun, 7 Feb 2021 18:04:40 +0800 Message-ID: <1612692280-11386-4-git-send-email-liulongfang@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1612692280-11386-1-git-send-email-liulongfang@huawei.com> References: <1612692280-11386-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 If the header file "crypto/internal/hash.h" not added, the allocation of crypto_tfm will fail when the shash algorithm calculates the hash through the software. Signed-off-by: Longfang Liu --- drivers/crypto/hisilicon/sec2/sec_crypto.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/crypto/hisilicon/sec2/sec_crypto.c b/drivers/crypto/hisilicon/sec2/sec_crypto.c index d2c4a2c..988faf7 100644 --- a/drivers/crypto/hisilicon/sec2/sec_crypto.c +++ b/drivers/crypto/hisilicon/sec2/sec_crypto.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include -- 2.8.1