From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pdx-out-001.esa.us-west-2.outbound.mail-perimeter.amazon.com (pdx-out-001.esa.us-west-2.outbound.mail-perimeter.amazon.com [44.245.243.92]) (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 5AA9C21CC7B; Thu, 12 Feb 2026 03:19:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=44.245.243.92 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770866356; cv=none; b=e9DYyciMvDhBuOGzwdCHM8YfHPCNTjChjsf33k8tg4/LmRLABTtvEmWI16d9VZxyG3OmNCshoMH21evRgovkwm1WRroMR6hZgW1KcE8jGONahf+tyrJirq7iDHU7ZpTxsan991TvLCxjIjDGIW8MKgm5So3pt1vGxm75W/5vJno= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770866356; c=relaxed/simple; bh=XciVuV2IZ72U/fNsq3ULUnjDFQFScQbjMmL9HW2gpK4=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=IfKqqjYXyRe+EShpTE0AKsk3rCy051pi2Q22k/4R6OqRyj5YsctKb/z7WZL7gTVkszDk+aAayHBoA1hLM73cl5dbu5tSUyiplSHcRODsKwsBxc8Qa3ZLvt5psZJ7WWur+eMv9I8Q4ffn1AnTyS9MJz6y51tNGabvqj1/UxZBZ9c= 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=IGqhPuEC; arc=none smtp.client-ip=44.245.243.92 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="IGqhPuEC" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazoncorp2; t=1770866355; x=1802402355; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=1XeDfYrq0hOTcBCf2HrS8kRzGovR+lou0alnynujV+4=; b=IGqhPuECX2k+wvjeeQi4oii0r7E6SCheqeCjZVAmTrViT6rtrMe6h9jZ aC6XBRcOoF67Fce2/ltSMvPqwXz7RybDe6kXr3qH1wM24/6mhL9LqUPIa dW6XwDOdWEq2bsqOYGGsSoL+fvg8iH797ukdhhTemN/FcZ/6bXTHSxUsx NptHsJcCgSY+hm5f8e651Uh2MqQt5Mjnd+eBEC3I24VwMvuKtvOiWERNj 8KNgnY4we35HAjIheQXkwpg1vC7Jlrg/Yq18xZuXT02n5Jp8BfIoGfdmD kVXLrmve+nw/AEvggs4YuzwPzXIPCNp7rQwHv8G9HMTf3BJAfE1nCMCct w==; X-CSE-ConnectionGUID: DhQbE13mT1WKtdhiOCuAOw== X-CSE-MsgGUID: 4n/P123+QS+PclXJZZ4w3g== X-IronPort-AV: E=Sophos;i="6.21,285,1763424000"; d="scan'208";a="12456010" 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-001.esa.us-west-2.outbound.mail-perimeter.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Feb 2026 03:19:15 +0000 Received: from EX19MTAUWC001.ant.amazon.com [205.251.233.105:7031] by smtpin.naws.us-west-2.prod.farcaster.email.amazon.dev [10.0.39.165:2525] with esmtp (Farcaster) id ffbcda7a-381a-4f66-a172-049b77184616; Thu, 12 Feb 2026 03:19:14 +0000 (UTC) X-Farcaster-Flow-ID: ffbcda7a-381a-4f66-a172-049b77184616 Received: from EX19D001UWA001.ant.amazon.com (10.13.138.214) by EX19MTAUWC001.ant.amazon.com (10.250.64.174) 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:19:14 +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:19:14 +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 15/21] x86: crypto: convert exported crypto symbol into pluggable interface for CONFIG_CRYPTO_GHASH_CLMUL_NI_INTEL crypto Date: Thu, 12 Feb 2026 03:15:13 +0000 Message-ID: <20260212031521.2124-16-wanjay@amazon.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260212031521.2124-1-wanjay@amazon.com> References: <20260212031521.2124-1-wanjay@amazon.com> Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: EX19D043UWA004.ant.amazon.com (10.13.139.41) To EX19D001UWA001.ant.amazon.com (10.13.138.214) Apply Crypto API wrappers to the exported crypto symbol in CONFIG_CRYPTO_GHASH_CLMUL_NI_INTEL-related crypto to convert them into pluggable interface. Signed-off-by: Jay Wang --- arch/x86/crypto/Makefile | 2 +- arch/x86/crypto/ghash-clmulni-intel_glue.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/crypto/Makefile b/arch/x86/crypto/Makefile index 601e4c8a9e7c..b65f66577ffe 100644 --- a/arch/x86/crypto/Makefile +++ b/arch/x86/crypto/Makefile @@ -50,7 +50,7 @@ aesni-intel-$(CONFIG_64BIT) += aes-ctr-avx-x86_64.o \ aes-gcm-vaes-avx512.o \ aes-xts-avx-x86_64.o -obj-$(CONFIG_CRYPTO_GHASH_CLMUL_NI_INTEL) += ghash-clmulni-intel.o +crypto-objs-$(CONFIG_CRYPTO_GHASH_CLMUL_NI_INTEL) += ghash-clmulni-intel.o ghash-clmulni-intel-y := ghash-clmulni-intel_asm.o ghash-clmulni-intel_glue.o obj-$(CONFIG_CRYPTO_SM3_AVX_X86_64) += sm3-avx-x86_64.o diff --git a/arch/x86/crypto/ghash-clmulni-intel_glue.c b/arch/x86/crypto/ghash-clmulni-intel_glue.c index aea5d4d06be7..02301df7fef3 100644 --- a/arch/x86/crypto/ghash-clmulni-intel_glue.c +++ b/arch/x86/crypto/ghash-clmulni-intel_glue.c @@ -155,8 +155,8 @@ static void __exit ghash_pclmulqdqni_mod_exit(void) crypto_unregister_shash(&ghash_alg); } -module_init(ghash_pclmulqdqni_mod_init); -module_exit(ghash_pclmulqdqni_mod_exit); +crypto_module_init(ghash_pclmulqdqni_mod_init); +crypto_module_exit(ghash_pclmulqdqni_mod_exit); MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("GHASH hash function, accelerated by PCLMULQDQ-NI"); -- 2.47.3