From patchwork Fri Jun 24 11:13:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qian Cai X-Patchwork-Id: 12894361 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 DE03EC433EF for ; Fri, 24 Jun 2022 11:15:17 +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=NtP4EKhgcqmAQfbOlvW+5fP6Dn+Skld8M3Se2th2lJQ=; b=QLiy3K39KUs0aw Zlbg8jf178oTXyPYY9a+hJWODkiD2zooHvXdI0xUZOByVr3xgZw8tHS7AgxrjvCbQw5DFwRFzSgWP 6Dqg7PH6etNTqS8YQ8AVC8s8ybsuQylOGaoE26ftQcZg9fLGPmmbphUE+Dn9BMef51CER/1zOFGC9 S0BaPUdJDnuyl1IwlLedJN6ECGF9lvo4jK47fBz9wQi8XmBkadZ3eR8OSCiSJwSM8SmZg5jGaKR6U USXx3yoq5pdSIsPg19EyLe35ANlxjnsluvKQANhF7GLPUjXuMWMcTZuLpqu9oPqzWqaYglED4ggXv Y2IG95GfSMRDm6TiwpDw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4hGO-001uxn-Jw; Fri, 24 Jun 2022 11:14:12 +0000 Received: from alexa-out-sd-01.qualcomm.com ([199.106.114.38]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o4hGL-001ux7-Vc for linux-arm-kernel@lists.infradead.org; Fri, 24 Jun 2022 11:14:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1656069249; x=1687605249; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=C+2JZuxDaO1dSIA4AcGGYwxdg94USAJGnnLvJk44KPE=; b=vBvwL4Pp+tn5MWHdK3vqG0LoxZHLntHsH+sXk3qfAkc3HP8VsrCelVHU 7b9nZQ/j9UJtYAXs7AbTmB8EJsr95Y7Rrv4yr3PTV4mgi3Du4F9gV+0sA JeVuF2Q6Xm+036cji8+biJ3+dH6WqqQVkFfPaVMrpIWpRdcCQ6D06II8Z w=; Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-01.qualcomm.com with ESMTP; 24 Jun 2022 04:14:07 -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; 24 Jun 2022 04:14:07 -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; Fri, 24 Jun 2022 04:14:07 -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; Fri, 24 Jun 2022 04:14:05 -0700 From: Qian Cai To: Herbert Xu , "David S. Miller" CC: Ard Biesheuvel , Catalin Marinas , Will Deacon , , , , Qian Cai Subject: [PATCH] arm64/crypto: Select AEAD for GHASH_ARM64_CE Date: Fri, 24 Jun 2022 07:13:38 -0400 Message-ID: <20220624111338.209380-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-20220624_041410_087251_E3A48475 X-CRM114-Status: UNSURE ( 7.94 ) 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: 537c1445ab0b ("crypto: arm64/gcm - implement native driver using v8 Crypto Extensions") 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..60db5bb2ddda 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_AEAD config CRYPTO_POLYVAL_ARM64_CE tristate "POLYVAL using ARMv8 Crypto Extensions (for HCTR2)"