From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pdx-out-014.esa.us-west-2.outbound.mail-perimeter.amazon.com (pdx-out-014.esa.us-west-2.outbound.mail-perimeter.amazon.com [35.83.148.184]) (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 70F011D5146; Thu, 12 Feb 2026 03:20:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=35.83.148.184 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770866449; cv=none; b=DfoH94HtawLHnEPqwfNo6CWL7njFJ5WUX49guCT5Gyc2D6fwqq0lIc+QWh78sYwat45AaANVqIY3gplw51+9XzEpT2UveqN6YU6N6p2CQpW0BS/mCkAYbqxNmNzSxlu7LAoC1d4Alllp0KVqDKKkGdycLdHORkYjoqNe4HzMLmc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770866449; c=relaxed/simple; bh=BJoHyaU193KIUSJEM8o8wl59+YU8QGRRCkJliKAJdWw=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=i5ifx/n0L6e5Oa+XLTCA4b/pDO69TIYqNOEpxIXz9MX7iRIU7R2J68HSkFL72yxTlRyAOGngcBrBFUoulpcfYtGQMGA34OA3W+29pNozI5aI/gAcfADmuu52pNIAMiVuVm/Z5cO77eQM034XJJQfA5ktW30fN7T38848lY83cbA= 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=l//3pQ1V; arc=none smtp.client-ip=35.83.148.184 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="l//3pQ1V" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazoncorp2; t=1770866448; x=1802402448; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ctyecARhq+jcNC6fI3R0BgXSdnovDRexlK9i6mhIKyc=; b=l//3pQ1VvLb25k2pJoRqkuz4fiE3jyEynaKVINrDZ0G/smi5tOT95jpE 8bbUGLZFRZrbeNl7/lo5DlI4Q0AJp+u82Cb8bSfJiA5d/wRfUs2/48oUB Tshvg+EvoyrzswuMkhx9ky/TuNY8X0yFzWnJLPVCEmohwfPQOeU/w7r1Q 94YE+gsVpuHHfpa3Yv2a7RCLac+kW8JjMCXbhbPy3XkIovxa7ewzTHoqQ bjg8frkBIRY4vNX567OeE7LLaJB+IKE+Hqunir4VZ84Hh5jcoPTvS4p1T 6OJhMhQdJ+/1We1Ddd2sk6t/gwQVdWgnbeMDDyp++d6nTEEpqZssNhElL w==; X-CSE-ConnectionGUID: C2sHTipQSSW54+nBgtcD5g== X-CSE-MsgGUID: hYNGUZ2HTH+LoB4YZ2lHHg== X-IronPort-AV: E=Sophos;i="6.21,285,1763424000"; d="scan'208";a="12697690" Received: from ip-10-5-12-219.us-west-2.compute.internal (HELO smtpout.naws.us-west-2.prod.farcaster.email.amazon.dev) ([10.5.12.219]) by internal-pdx-out-014.esa.us-west-2.outbound.mail-perimeter.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Feb 2026 03:20:48 +0000 Received: from EX19MTAUWC001.ant.amazon.com [205.251.233.105:17966] by smtpin.naws.us-west-2.prod.farcaster.email.amazon.dev [10.0.54.219:2525] with esmtp (Farcaster) id b13d0f7c-882b-48f2-9531-1a0e99e8f508; Thu, 12 Feb 2026 03:20:47 +0000 (UTC) X-Farcaster-Flow-ID: b13d0f7c-882b-48f2-9531-1a0e99e8f508 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:20:47 +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:20:47 +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 21/21] x86: crypto: convert exported crypto symbol into pluggable interface for CONFIG_CRYPTO_ARIA_GFNI_AVX512_X86_64 crypto Date: Thu, 12 Feb 2026 03:15:19 +0000 Message-ID: <20260212031521.2124-22-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: EX19D031UWA002.ant.amazon.com (10.13.139.96) To EX19D001UWA001.ant.amazon.com (10.13.138.214) Apply Crypto API wrappers to the exported crypto symbol in CONFIG_CRYPTO_ARIA_GFNI_AVX512_X86_64-related crypto to convert them into pluggable interface. Signed-off-by: Jay Wang --- arch/x86/crypto/Makefile | 2 +- arch/x86/crypto/aria_gfni_avx512_glue.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/crypto/Makefile b/arch/x86/crypto/Makefile index 28ed31e7d6e3..c23ad85ebe12 100644 --- a/arch/x86/crypto/Makefile +++ b/arch/x86/crypto/Makefile @@ -68,7 +68,7 @@ aria-aesni-avx-x86_64-y := aria-aesni-avx-asm_64.o aria_aesni_avx_glue.o crypto-objs-$(CONFIG_CRYPTO_ARIA_AESNI_AVX2_X86_64) += aria-aesni-avx2-x86_64.o aria-aesni-avx2-x86_64-y := aria-aesni-avx2-asm_64.o aria_aesni_avx2_glue.o -obj-$(CONFIG_CRYPTO_ARIA_GFNI_AVX512_X86_64) += aria-gfni-avx512-x86_64.o +crypto-objs-$(CONFIG_CRYPTO_ARIA_GFNI_AVX512_X86_64) += aria-gfni-avx512-x86_64.o aria-gfni-avx512-x86_64-y := aria-gfni-avx512-asm_64.o aria_gfni_avx512_glue.o # FIPS 140 kernel module diff --git a/arch/x86/crypto/aria_gfni_avx512_glue.c b/arch/x86/crypto/aria_gfni_avx512_glue.c index 363cbf4399cc..d11615352bf4 100644 --- a/arch/x86/crypto/aria_gfni_avx512_glue.c +++ b/arch/x86/crypto/aria_gfni_avx512_glue.c @@ -232,8 +232,8 @@ static void __exit aria_avx512_exit(void) crypto_unregister_skciphers(aria_algs, ARRAY_SIZE(aria_algs)); } -module_init(aria_avx512_init); -module_exit(aria_avx512_exit); +crypto_module_init(aria_avx512_init); +crypto_module_exit(aria_avx512_exit); MODULE_LICENSE("GPL"); MODULE_AUTHOR("Taehee Yoo "); -- 2.47.3