From patchwork Wed Jun 22 14:25:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qian Cai X-Patchwork-Id: 12890819 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 534ACC433EF for ; Wed, 22 Jun 2022 14:27:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=9xYwjUjffVpw3XYcVFiks3YA9bBbCEQOWC4sGdpO81g=; b=gvtedGWu1EylhC x4xNlBG/ZroNnWwlJ/p5y0B3zZRRAzf6BGRyGmX8b6xfTrYNUBIefI2fLhszX+sD31Eh1lhiMHRQ3 zKPUgIP7cKcTTxNM8d/J904m/35D+Cxe/nXEyzxbDc57OW2469LHI/50thuB9D/gcY7VCc61eaesO xC4+tvmvJjidoX4dWrxPNk0qfomw/O3KqalUcUY/HoyQl4uJIfiWp7VBHHK5ueZWG8tr0UepyG4D8 OYiGBzAb2yT3Sqvux2dsP/rpzP3EbC4M7PgeVnKLRHm4y1bhdf74IR+no7IbruJT6+GcpRvfAdHWT mQYv7KHF6OJbaxSf2IZA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o41JL-00AuJm-OB; Wed, 22 Jun 2022 14:26:27 +0000 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o41JJ-00AuJA-4x for linux-arm-kernel@lists.infradead.org; Wed, 22 Jun 2022 14:26:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1655907985; x=1687443985; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=RkC7CSKPsBmpnFx2b7MQAkEllShuNN7t7DR2zozOlqM=; b=Vb2Ep/YdTqj1LMfrD3JaiMX4QIxyR6VVzqyO8WHxhJju83Tet7hZJ+U7 Iil12z6Chrq/Ou6SH3eXP2wtcDPXrvbRCA4VwsZ/OVJ4FvVXJMEP+vlOL 1Tw218EUVhUATlz9/AgzL40dYA/Z5PqTLC2BLIZm0H9UdHjuwYlTaV+Ma A=; Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-02.qualcomm.com with ESMTP; 22 Jun 2022 07:26:24 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg02-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2022 07:26:24 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 22 Jun 2022 07:26:24 -0700 Received: from ubuntu.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Wed, 22 Jun 2022 07:26:22 -0700 From: Qian Cai To: Herbert Xu , "David S. Miller" CC: Ard Biesheuvel , Catalin Marinas , Will Deacon , , , , Qian Cai Subject: [PATCH] arm64/crypto: Select AEAD2 for GHASH_ARM64_CE Date: Wed, 22 Jun 2022 10:25:57 -0400 Message-ID: <20220622142557.144536-1-quic_qiancai@quicinc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220622_072625_264638_68836652 X-CRM114-Status: UNSURE ( 8.31 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Otherwise, we could fail to compile. ld: arch/arm64/crypto/ghash-ce-glue.o: in function 'ghash_ce_mod_exit': ghash-ce-glue.c:(.exit.text+0x24): undefined reference to 'crypto_unregister_aead' ld: arch/arm64/crypto/ghash-ce-glue.o: in function 'ghash_ce_mod_init': ghash-ce-glue.c:(.init.text+0x34): undefined reference to 'crypto_register_aead' Fixes: 37b6aab68fae ("crypto: arm64/ghash - drop PMULL based shash") Signed-off-by: Qian Cai --- arch/arm64/crypto/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/crypto/Kconfig b/arch/arm64/crypto/Kconfig index 4391a463abd7..6b2ecc193bc0 100644 --- a/arch/arm64/crypto/Kconfig +++ b/arch/arm64/crypto/Kconfig @@ -71,6 +71,7 @@ config CRYPTO_GHASH_ARM64_CE select CRYPTO_HASH select CRYPTO_GF128MUL select CRYPTO_LIB_AES + select CRYPTO_AEAD2 config CRYPTO_POLYVAL_ARM64_CE tristate "POLYVAL using ARMv8 Crypto Extensions (for HCTR2)"