From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pdx-out-012.esa.us-west-2.outbound.mail-perimeter.amazon.com (pdx-out-012.esa.us-west-2.outbound.mail-perimeter.amazon.com [35.162.73.231]) (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 D8D7A17ADE0; Thu, 12 Feb 2026 03:22:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=35.162.73.231 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770866556; cv=none; b=b3hfE2UmB+UZzueJNak0bDGOLnSbHJi6y4nXMZFCvMAObXX40zQV90rrMfmq/Sk8+NnCD20wi5m4aCrG/RTjI5+ZVsDV9Wu2JUNEIgNn4NQyFblCJ+Fa2P8IecL5elodNGj1E3wZulWHqgJlEia9ORZrWP+nBA1QAziLkpLb6rg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770866556; c=relaxed/simple; bh=J0DRJt8gvzM72Zgo1RiCwSrbEP0+2SsS8UnMYa5pR9w=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ocVEYRrimSuEftlgVgGksIOJD2BhMPfFJyrBTFbA0uZVXI04milWAWHGhMfqdHVh8ltQm4ZgCZY7GmwE04oLPuvgbY3aK5x8fVCPoNbByXWpMGium6+5sm5dJth1hb1TvWjvpWjhgQZzyhJ/EUIbXNL6q1yB8IfA4e+NJbJXIvw= 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=JNjL8v71; arc=none smtp.client-ip=35.162.73.231 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="JNjL8v71" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazoncorp2; t=1770866555; x=1802402555; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ZkDhwjOZrpamwSu22JI7M0uaHC9mk3y0opcfSDw/FVs=; b=JNjL8v71HRyFlhlsjl/1FcC0/upCF4bsfI98YhLKQOF60dKpV5fjmK2j YObFIKk9K438D+dYtVpXwpR8FB0/L2PMl6mGk2Omr3InZnecWenkRuJnP DjulR8gh71QhvZmi9vSZrZiBkzlmrFdEv1wMjaocJQa37NU+cYYkCjhWI qLTN0aMPdw+N43n5t5HM7Wik6Z+5l38qwqCwwxZiydSZ8IHk77jsPFc/v cMU4Oy8GNEWzXkQOmSlV7db3LYauwiGXi8znvg2Mi3ZIDkUJFkwPPX4Gv JkuLPnFHgMtvWE7INBTnK2qEJ0MvqJIehQ90Kxsu4mmMXFNaxereqFA23 g==; X-CSE-ConnectionGUID: FisB0SiSR7WyV6EdV/ICtg== X-CSE-MsgGUID: kUlsHcQ6Q/e65OlTA1tOpw== X-IronPort-AV: E=Sophos;i="6.21,285,1763424000"; d="scan'208";a="12722696" Received: from ip-10-5-6-203.us-west-2.compute.internal (HELO smtpout.naws.us-west-2.prod.farcaster.email.amazon.dev) ([10.5.6.203]) by internal-pdx-out-012.esa.us-west-2.outbound.mail-perimeter.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Feb 2026 03:22:35 +0000 Received: from EX19MTAUWA002.ant.amazon.com [205.251.233.234:30685] by smtpin.naws.us-west-2.prod.farcaster.email.amazon.dev [10.0.31.238:2525] with esmtp (Farcaster) id 146075df-a5f9-46d8-a026-0166005e892d; Thu, 12 Feb 2026 03:22:35 +0000 (UTC) X-Farcaster-Flow-ID: 146075df-a5f9-46d8-a026-0166005e892d Received: from EX19D001UWA001.ant.amazon.com (10.13.138.214) by EX19MTAUWA002.ant.amazon.com (10.250.64.202) 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:22:35 +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:22:34 +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 05/12] arm64: crypto: convert exported crypto symbol into pluggable interface for CONFIG_CRYPTO_SM4_ARM64_CE_CCM crypto Date: Thu, 12 Feb 2026 03:21:05 +0000 Message-ID: <20260212032117.9166-6-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: EX19D041UWA004.ant.amazon.com (10.13.139.9) To EX19D001UWA001.ant.amazon.com (10.13.138.214) Apply Crypto API wrappers to the exported crypto symbol in CONFIG_CRYPTO_SM4_ARM64_CE_CCM-related crypto to convert them into pluggable interface. Signed-off-by: Jay Wang --- arch/arm64/crypto/Makefile | 2 +- arch/arm64/crypto/sm4-ce-ccm-glue.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/crypto/Makefile b/arch/arm64/crypto/Makefile index 59e94f714ef9..f17d35591ab2 100644 --- a/arch/arm64/crypto/Makefile +++ b/arch/arm64/crypto/Makefile @@ -17,7 +17,7 @@ sm4-ce-cipher-y := sm4-ce-cipher-glue.o sm4-ce-cipher-core.o crypto-objs-$(CONFIG_CRYPTO_SM4_ARM64_CE_BLK) += sm4-ce.o sm4-ce-y := sm4-ce-glue.o sm4-ce-core.o -obj-$(CONFIG_CRYPTO_SM4_ARM64_CE_CCM) += sm4-ce-ccm.o +crypto-objs-$(CONFIG_CRYPTO_SM4_ARM64_CE_CCM) += sm4-ce-ccm.o sm4-ce-ccm-y := sm4-ce-ccm-glue.o sm4-ce-ccm-core.o obj-$(CONFIG_CRYPTO_SM4_ARM64_CE_GCM) += sm4-ce-gcm.o diff --git a/arch/arm64/crypto/sm4-ce-ccm-glue.c b/arch/arm64/crypto/sm4-ce-ccm-glue.c index 332f02167a96..96e54d9c45fd 100644 --- a/arch/arm64/crypto/sm4-ce-ccm-glue.c +++ b/arch/arm64/crypto/sm4-ce-ccm-glue.c @@ -276,8 +276,8 @@ static void __exit sm4_ce_ccm_exit(void) crypto_unregister_aead(&sm4_ccm_alg); } -module_cpu_feature_match(SM4, sm4_ce_ccm_init); -module_exit(sm4_ce_ccm_exit); +crypto_module_cpu_feature_match(SM4, sm4_ce_ccm_init); +crypto_module_exit(sm4_ce_ccm_exit); MODULE_DESCRIPTION("Synchronous SM4 in CCM mode using ARMv8 Crypto Extensions"); MODULE_ALIAS_CRYPTO("ccm(sm4)"); -- 2.47.3