From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pdx-out-009.esa.us-west-2.outbound.mail-perimeter.amazon.com (pdx-out-009.esa.us-west-2.outbound.mail-perimeter.amazon.com [35.155.198.111]) (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 1641521CC7B; Thu, 12 Feb 2026 03:17:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=35.155.198.111 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770866279; cv=none; b=NGrhfqq3n5oHtLyi26f6vEvw5mq3WAt+IA45/qfkLb69lFWfCzsI5hkjtwCJkis9I2TSql7KHXwexBbAXp1w5avCIylEd0Y26XJJsFwDmyLWXtH2kEepvOom51MfOd/KYCI9SZPGb6EZTyOs5iUZAs/xLQ2GreuPk8mpA/UyFoc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770866279; c=relaxed/simple; bh=aVppG0AV4no+JYM8NXvV/w9naosY40XjWFtmFTSrI2M=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=hbfvN8mgKxDV+rH3c0KNyR/KealW7pifwiC0QM1Vi7KT7OUf1aIBGuJb6RWOS/vuCGrDa1PHzY1ivTrhIbSYlaYSVIcQYL6Aux28nYJEWu53F2fwngl2Max/lehQThYVWciCNfqxat0NHQFbQ2kVusSEKvQ0LxCvETTWqxw8etg= 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=ttzmv2Qv; arc=none smtp.client-ip=35.155.198.111 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="ttzmv2Qv" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazoncorp2; t=1770866278; x=1802402278; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=p2D91nUATxmfObgoS15ag4ACKZQIXGGKDXe90R6Elqc=; b=ttzmv2QvpRciQ5m61MUOnAlva5Ugeebs9Gko/wmlz/BhMOsB6L0zjaud ap2ZwFyKvLWaKgyf2Jo+5mMzOymBpvRRd7LE5EoXKE0oGtWB6t9AKjqF0 LIjtTvnzjA5jTFcl9WTh99/JabD9/s6MgWlDPGw/a29QvevSvEVr3YgZi f4h8TyByfCXLOAIYrqB5e71TrKPl8YP2qmPbcEsEVvEbOawIWF9LIL793 UMdS9nDkVAi+ZqQj4yBYtYFBiuxUDwKTEYFGrlbDZl6Sz6KBysGhv85ec CoxNpGxWcjBTkmzM74o9ztmM2lNpkZhKD2d/lXZrOfjwS9HS3teOrj9Tp g==; X-CSE-ConnectionGUID: p5iZy9jEQ0yYK+gQfvXKIg== X-CSE-MsgGUID: ONFninUUR3Sa4m3ktlky2Q== X-IronPort-AV: E=Sophos;i="6.21,285,1763424000"; d="scan'208";a="12804121" 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-009.esa.us-west-2.outbound.mail-perimeter.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Feb 2026 03:17:57 +0000 Received: from EX19MTAUWB002.ant.amazon.com [205.251.233.111:18837] by smtpin.naws.us-west-2.prod.farcaster.email.amazon.dev [10.0.29.209:2525] with esmtp (Farcaster) id 23f85647-5769-4559-a44b-84d9dfa33392; Thu, 12 Feb 2026 03:17:57 +0000 (UTC) X-Farcaster-Flow-ID: 23f85647-5769-4559-a44b-84d9dfa33392 Received: from EX19D001UWA001.ant.amazon.com (10.13.138.214) by EX19MTAUWB002.ant.amazon.com (10.250.64.231) 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:17:57 +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:17:56 +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 10/21] x86: crypto: convert exported crypto symbol into pluggable interface for CONFIG_CRYPTO_AES_NI_INTEL crypto Date: Thu, 12 Feb 2026 03:15:08 +0000 Message-ID: <20260212031521.2124-11-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-modules@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: EX19D046UWA002.ant.amazon.com (10.13.139.39) To EX19D001UWA001.ant.amazon.com (10.13.138.214) Apply Crypto API wrappers to the exported crypto symbol in CONFIG_CRYPTO_AES_NI_INTEL-related crypto to convert them into pluggable interface. Signed-off-by: Jay Wang --- arch/x86/crypto/Makefile | 2 +- arch/x86/crypto/aesni-intel_glue.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/crypto/Makefile b/arch/x86/crypto/Makefile index 8751154e1328..a3af66c98760 100644 --- a/arch/x86/crypto/Makefile +++ b/arch/x86/crypto/Makefile @@ -42,7 +42,7 @@ cast6-avx-x86_64-y := cast6-avx-x86_64-asm_64.o cast6_avx_glue.o obj-$(CONFIG_CRYPTO_AEGIS128_AESNI_SSE2) += aegis128-aesni.o aegis128-aesni-y := aegis128-aesni-asm.o aegis128-aesni-glue.o -obj-$(CONFIG_CRYPTO_AES_NI_INTEL) += aesni-intel.o +crypto-objs-$(CONFIG_CRYPTO_AES_NI_INTEL) += aesni-intel.o aesni-intel-y := aesni-intel_asm.o aesni-intel_glue.o aesni-intel-$(CONFIG_64BIT) += aes-ctr-avx-x86_64.o \ aes-gcm-aesni-x86_64.o \ diff --git a/arch/x86/crypto/aesni-intel_glue.c b/arch/x86/crypto/aesni-intel_glue.c index e6c38d1d8a92..57bee257365a 100644 --- a/arch/x86/crypto/aesni-intel_glue.c +++ b/arch/x86/crypto/aesni-intel_glue.c @@ -1664,8 +1664,8 @@ static void __exit aesni_exit(void) unregister_avx_algs(); } -module_init(aesni_init); -module_exit(aesni_exit); +crypto_module_init(aesni_init); +crypto_module_exit(aesni_exit); MODULE_DESCRIPTION("AES cipher and modes, optimized with AES-NI or VAES instructions"); MODULE_LICENSE("GPL"); -- 2.47.3