From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pdx-out-007.esa.us-west-2.outbound.mail-perimeter.amazon.com (pdx-out-007.esa.us-west-2.outbound.mail-perimeter.amazon.com [52.34.181.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7FF1E22301; Thu, 12 Feb 2026 03:23:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=52.34.181.151 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770866603; cv=none; b=UU/DdoxiMTDeW0CBnQm7ogVIsKu1VJFvX77F/F2g62FnboQL7cIhI8zjWwt699B/sTXJgsnrYqglrjBC4d+3y6A/Y9QD76RSjWOyXgo81wzTqEU19JzdIeDfq+jJOhyn2nO/VuJcDasY8So8pRqsIs/rj4WLMzYYUGdVaUzQohY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770866603; c=relaxed/simple; bh=oNlOXYgSbtB4NpfEPsZckWFIdyWFUI6p0k8+CBv4ksI=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=EKYR0foc0g2IWW1Wv4J/c/bd2cR22mR+a7MUhSCBFFXms9G8s3TvdhK2w3EMqK1hGldguyPh31dk0MUhLEd3NnuXw6XXXTIhPCDxnQ/A76fJIc5/6FEVt11fEH3JRln7B/t04MdJthxkn2A3yGOhAJ4oq9pJx7HPvJseizNVDx4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.com; spf=pass smtp.mailfrom=amazon.com; dkim=pass (2048-bit key) header.d=amazon.com header.i=@amazon.com header.b=XtBPZkHn; arc=none smtp.client-ip=52.34.181.151 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amazon.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amazon.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=amazon.com header.i=@amazon.com header.b="XtBPZkHn" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazoncorp2; t=1770866602; x=1802402602; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=XdAdR4u8HO5EJ5Fvkfre3lB9l0OnXJsQBK972oTsO+4=; b=XtBPZkHnRrbVO9+mkXfeDea2f9mzy9VCaD5zAbibq7HOmtSzbbW0LmFu TsQgo1k5vYlUX7t7Q/vENiSTQcRSqYcq67G5qp3nsh71WZ9C30QW1ov1S xZUzOmswW6fnGzv6AMADWd7ICxWeFf/qaaFiHB0VJkJ8xRgq+n8DeHDGo gAImexNTG7Stm6cFHulJedqXiBEPBK5Q2kzlUs6wfvPooHh3eubEo5358 e/eMtXfnp3Fq8azg9VupIK7RqM8b1MYpfIL3UTirdkyjPTdv2r4bGvwZG 47eKSJ9lFuHx98U0ihykrKBGvZb0t9w4ACLeaToQM6rlM+mjNJAnPmaTD g==; X-CSE-ConnectionGUID: lpjh7efoQ5e1SloOlKunNw== X-CSE-MsgGUID: HpBhWRcFS/qnBY7KHf3s4A== X-IronPort-AV: E=Sophos;i="6.21,285,1763424000"; d="scan'208";a="12920874" Received: from ip-10-5-0-115.us-west-2.compute.internal (HELO smtpout.naws.us-west-2.prod.farcaster.email.amazon.dev) ([10.5.0.115]) by internal-pdx-out-007.esa.us-west-2.outbound.mail-perimeter.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Feb 2026 03:23:22 +0000 Received: from EX19MTAUWA001.ant.amazon.com [205.251.233.236:8263] by smtpin.naws.us-west-2.prod.farcaster.email.amazon.dev [10.0.3.19:2525] with esmtp (Farcaster) id 5d00f0a5-390c-4633-b989-41705e860cda; Thu, 12 Feb 2026 03:23:22 +0000 (UTC) X-Farcaster-Flow-ID: 5d00f0a5-390c-4633-b989-41705e860cda Received: from EX19D001UWA001.ant.amazon.com (10.13.138.214) by EX19MTAUWA001.ant.amazon.com (10.250.64.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.2562.35; Thu, 12 Feb 2026 03:23:21 +0000 Received: from dev-dsk-wanjay-2c-d25651b4.us-west-2.amazon.com (172.19.198.4) by EX19D001UWA001.ant.amazon.com (10.13.138.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.2562.35; Thu, 12 Feb 2026 03:23:21 +0000 From: Jay Wang To: Herbert Xu , "David S . Miller" , CC: Jay Wang , Vegard Nossum , Nicolai Stange , Ilia Okomin , Catalin Marinas , "Will Deacon" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Luis Chamberlain , Petr Pavlu , Nathan Chancellor , Nicolas Schier , , , , Subject: [PATCH 08/12] arm64: crypto: convert exported crypto symbol into pluggable interface for CONFIG_CRYPTO_GHASH_ARM64_CE crypto Date: Thu, 12 Feb 2026 03:21:08 +0000 Message-ID: <20260212032117.9166-9-wanjay@amazon.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260212032117.9166-1-wanjay@amazon.com> References: <20260212032117.9166-1-wanjay@amazon.com> Precedence: bulk X-Mailing-List: linux-modules@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: EX19D035UWA001.ant.amazon.com (10.13.139.101) To EX19D001UWA001.ant.amazon.com (10.13.138.214) Apply Crypto API wrappers to the exported crypto symbol in CONFIG_CRYPTO_GHASH_ARM64_CE-related crypto to convert them into pluggable interface. Signed-off-by: Jay Wang --- arch/arm64/crypto/Makefile | 2 +- arch/arm64/crypto/ghash-ce-glue.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/crypto/Makefile b/arch/arm64/crypto/Makefile index 48042cf5bb13..55692fc8771d 100644 --- a/arch/arm64/crypto/Makefile +++ b/arch/arm64/crypto/Makefile @@ -26,7 +26,7 @@ sm4-ce-gcm-y := sm4-ce-gcm-glue.o sm4-ce-gcm-core.o crypto-objs-$(CONFIG_CRYPTO_SM4_ARM64_NEON_BLK) += sm4-neon.o sm4-neon-y := sm4-neon-glue.o sm4-neon-core.o -obj-$(CONFIG_CRYPTO_GHASH_ARM64_CE) += ghash-ce.o +crypto-objs-$(CONFIG_CRYPTO_GHASH_ARM64_CE) += ghash-ce.o ghash-ce-y := ghash-ce-glue.o ghash-ce-core.o obj-$(CONFIG_CRYPTO_AES_ARM64_CE_CCM) += aes-ce-ccm.o diff --git a/arch/arm64/crypto/ghash-ce-glue.c b/arch/arm64/crypto/ghash-ce-glue.c index 63bb9e062251..ad17a1621df7 100644 --- a/arch/arm64/crypto/ghash-ce-glue.c +++ b/arch/arm64/crypto/ghash-ce-glue.c @@ -528,5 +528,5 @@ static const struct cpu_feature __maybe_unused ghash_cpu_feature[] = { }; MODULE_DEVICE_TABLE(cpu, ghash_cpu_feature); -module_init(ghash_ce_mod_init); -module_exit(ghash_ce_mod_exit); +crypto_module_init(ghash_ce_mod_init); +crypto_module_exit(ghash_ce_mod_exit); -- 2.47.3