From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pdx-out-002.esa.us-west-2.outbound.mail-perimeter.amazon.com (pdx-out-002.esa.us-west-2.outbound.mail-perimeter.amazon.com [44.246.1.125]) (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 F40FA22301; Thu, 12 Feb 2026 03:19:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=44.246.1.125 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770866392; cv=none; b=fR2RTEp1veolwvn9YqIJaYbgXxKdeWNBwEPJ+UbcNLYAU8v/nK3LSy1lkxPo8uHFRJVo6rt1sOpqTJE/mtpnW0xf7N93MjDCkQhRfgDTvaVb0KT9OFM3nGietTxYio9FojhkYzk3OrvUcNJjbnmfg+YPxn94JZHLBiDpHT8UOKo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770866392; c=relaxed/simple; bh=QoHlvSW9Y5+yrCfHeHyjv54ZBqG3ejLq/wFZVErrQnY=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=nR6gbemQoErhI85Q1bC4U4GH5dVwoHEKL9D9OWYA+AA5OTq06jJe5MJjNfxa8rZ/Spx2a+xxjwnSmsca1XVetaYmPHHbpJy0p97DYdtBiKHtZeNnmRqcCBUkPsIB/HsysCCHEHT71TD8679jd6n50NwvR9Q1pGOMfBqzvorOdRI= 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=M7bP0WjW; arc=none smtp.client-ip=44.246.1.125 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="M7bP0WjW" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazoncorp2; t=1770866391; x=1802402391; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=cL9NzQyA16DZUbwUdyV+/q3IWCQzLQmp592jssBRRYU=; b=M7bP0WjWcpMLqndV25C0ylivw1tAMCKG3ASkOgSzPl3gm5KZLpzdxpGX eox+D0xuUd+UgbGuJZx7GzaACUYpmUnhC3UY2R1egYAfBpb/B3IPaBH3e okeNhcPM68vqBMbCy8XyM+pTkAz+0r4N/Zy2NstPMzCO+DtVL9CFmhMnA Rwyf58EEhc44T6qmpJJlRzN+QPt3f0G+zalgTwCc4N9zYWTL2hVKKNDqF jZCHPmBcD+v34NFd5oFkN6c4rO89r1ieiLN73yjX8/Ce1bbZMAQwcffOf D40wwKvkHmPSIU73ZlhDCn530SxkIl9hxxUkPyW2Sj00UQ8iMsLxUK88N w==; X-CSE-ConnectionGUID: crx28WnYT4WEv5Isqf77rQ== X-CSE-MsgGUID: k+zLX5WdR6iIbbtaoLBtPQ== X-IronPort-AV: E=Sophos;i="6.21,285,1763424000"; d="scan'208";a="12920113" 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-002.esa.us-west-2.outbound.mail-perimeter.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Feb 2026 03:19:00 +0000 Received: from EX19MTAUWA001.ant.amazon.com [205.251.233.236:26795] by smtpin.naws.us-west-2.prod.farcaster.email.amazon.dev [10.0.61.62:2525] with esmtp (Farcaster) id d0d5fdba-0d81-4cc5-b75b-3d0421c0abee; Thu, 12 Feb 2026 03:19:00 +0000 (UTC) X-Farcaster-Flow-ID: d0d5fdba-0d81-4cc5-b75b-3d0421c0abee 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:18:59 +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:18:58 +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 14/21] x86: crypto: convert exported crypto symbol into pluggable interface for CONFIG_CRYPTO_AEGIS128_AESNI_SSE2 crypto Date: Thu, 12 Feb 2026 03:15:12 +0000 Message-ID: <20260212031521.2124-15-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: EX19D040UWB003.ant.amazon.com (10.13.138.8) To EX19D001UWA001.ant.amazon.com (10.13.138.214) Apply Crypto API wrappers to the exported crypto symbol in CONFIG_CRYPTO_AEGIS128_AESNI_SSE2-related crypto to convert them into pluggable interface. Signed-off-by: Jay Wang --- arch/x86/crypto/Makefile | 2 +- arch/x86/crypto/aegis128-aesni-glue.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/crypto/Makefile b/arch/x86/crypto/Makefile index cfef8fbfba8f..601e4c8a9e7c 100644 --- a/arch/x86/crypto/Makefile +++ b/arch/x86/crypto/Makefile @@ -39,7 +39,7 @@ cast5-avx-x86_64-y := cast5-avx-x86_64-asm_64.o cast5_avx_glue.o crypto-objs-$(CONFIG_CRYPTO_CAST6_AVX_X86_64) += cast6-avx-x86_64.o 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 +crypto-objs-$(CONFIG_CRYPTO_AEGIS128_AESNI_SSE2) += aegis128-aesni.o aegis128-aesni-y := aegis128-aesni-asm.o aegis128-aesni-glue.o crypto-objs-$(CONFIG_CRYPTO_AES_NI_INTEL) += aesni-intel.o diff --git a/arch/x86/crypto/aegis128-aesni-glue.c b/arch/x86/crypto/aegis128-aesni-glue.c index f1adfba1a76e..b3f2e99f02b1 100644 --- a/arch/x86/crypto/aegis128-aesni-glue.c +++ b/arch/x86/crypto/aegis128-aesni-glue.c @@ -277,8 +277,8 @@ static void __exit crypto_aegis128_aesni_module_exit(void) crypto_unregister_aead(&crypto_aegis128_aesni_alg); } -module_init(crypto_aegis128_aesni_module_init); -module_exit(crypto_aegis128_aesni_module_exit); +crypto_module_init(crypto_aegis128_aesni_module_init); +crypto_module_exit(crypto_aegis128_aesni_module_exit); MODULE_LICENSE("GPL"); MODULE_AUTHOR("Ondrej Mosnacek "); -- 2.47.3