From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pdx-out-003.esa.us-west-2.outbound.mail-perimeter.amazon.com (pdx-out-003.esa.us-west-2.outbound.mail-perimeter.amazon.com [44.246.68.102]) (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 BE52B4414; Thu, 12 Feb 2026 03:04:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=44.246.68.102 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770865489; cv=none; b=EbSoAbdzXkNzTEiSMs2hSFYx4p8pOfpNg/npg44cAHs8wM1f2HS+unFagaXHDCv2DvTi89xZcF87ocf4swSzMTT3Hnb+j7oJZIO6gUZODbmWWsrjKqNPL0EQ3tEYcqNaktAGFkOWBiwz0dgs8pw1eclgHw1lfHqpXrkJ4AVkQpo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770865489; c=relaxed/simple; bh=5tjJrPtIvYZJLX/I/xeJrCDLPGj/ZZz5Q4VCV0UL5wA=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=OmEFYZV7vX5GDr63EKwcski32C825DbLO0wwEpNkSY5+vrr2UxUy/lZWdMFf05brDp4yHbQEmfuQo4BZn3QwlOQIwTmTCojvDs6EOj7r/0nEUDOHutJv1MgXptDDxMqLU6luCNQERHgOMbbVB5y6hquZ4jZlaYsjDe8Fmiyv7FU= 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=LGRj7g4c; arc=none smtp.client-ip=44.246.68.102 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="LGRj7g4c" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazoncorp2; t=1770865488; x=1802401488; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=UVGkpJTVsL+FyCWcWP400rPsQjsveSWDb4RH3dOg7gE=; b=LGRj7g4cQ5dHxwSyH+OYhRATuYPB7t9aqP99f60blf4IRamQBpEdm7sG fD7WP7SMIcOr8t0cF1LOcDwxO1afZghOFY5eH6dSs2RVP/jDzVz3/1me6 Z8TZPZ9qum1w2M4PFXhySy5X89DjdwTf0DI+EFAoNErhTqkNf3a4PX7/O b6YcLaTySS+oyvfu772XDfEM8K4Xd9CnZubRdNF56paG65Bn7Xkjo2WiE TIG/MLQ9KvebgkGdmcU0+7z7JkUolGdWifQa9osYLBAJFJfWOom8D5Du4 VvrBNzgY677JdOAsm1iohnF3GPsveSnVXwgaIku/MYheUyF6tShl2F0xy Q==; X-CSE-ConnectionGUID: 18Sxd1zRRqO0OqvE4GnGhg== X-CSE-MsgGUID: C+082kb1R5iNgXAyweXmng== X-IronPort-AV: E=Sophos;i="6.21,285,1763424000"; d="scan'208";a="12925744" Received: from ip-10-5-9-48.us-west-2.compute.internal (HELO smtpout.naws.us-west-2.prod.farcaster.email.amazon.dev) ([10.5.9.48]) by internal-pdx-out-003.esa.us-west-2.outbound.mail-perimeter.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Feb 2026 03:04:47 +0000 Received: from EX19MTAUWC001.ant.amazon.com [205.251.233.105:9044] by smtpin.naws.us-west-2.prod.farcaster.email.amazon.dev [10.0.61.62:2525] with esmtp (Farcaster) id 14d16219-9707-449e-baf1-fbb72541182d; Thu, 12 Feb 2026 03:04:47 +0000 (UTC) X-Farcaster-Flow-ID: 14d16219-9707-449e-baf1-fbb72541182d 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:04: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:04:46 +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 067/106] crypto: convert exported crypto symbol into pluggable interface for CONFIG_CRYPTO_CAMELLIA crypto Date: Thu, 12 Feb 2026 02:46:43 +0000 Message-ID: <20260212024725.11264-68-wanjay@amazon.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260212024725.11264-1-wanjay@amazon.com> References: <20260212024725.11264-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: EX19D046UWB001.ant.amazon.com (10.13.139.187) To EX19D001UWA001.ant.amazon.com (10.13.138.214) Apply Crypto API wrappers to the exported crypto symbol in CONFIG_CRYPTO_CAMELLIA-related crypto to convert them into pluggable interface. Signed-off-by: Jay Wang --- crypto/Makefile | 2 +- crypto/camellia_generic.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto/Makefile b/crypto/Makefile index c14713e9cc55..4b6e56ad4d1c 100644 --- a/crypto/Makefile +++ b/crypto/Makefile @@ -137,7 +137,7 @@ CFLAGS_serpent_generic.o := $(call cc-option,-fsched-pressure) # https://gcc.gn crypto-objs-$(CONFIG_CRYPTO_AES) += aes.o crypto-objs-$(CONFIG_CRYPTO_SM4) += sm4.o crypto-objs-$(CONFIG_CRYPTO_SM4_GENERIC) += sm4_generic.o -obj-$(CONFIG_CRYPTO_CAMELLIA) += camellia_generic.o +crypto-objs-$(CONFIG_CRYPTO_CAMELLIA) += camellia_generic.o obj-$(CONFIG_CRYPTO_CAST_COMMON) += cast_common.o obj-$(CONFIG_CRYPTO_CAST5) += cast5_generic.o obj-$(CONFIG_CRYPTO_CAST6) += cast6_generic.o diff --git a/crypto/camellia_generic.c b/crypto/camellia_generic.c index ee4336a04b93..15a68abc387b 100644 --- a/crypto/camellia_generic.c +++ b/crypto/camellia_generic.c @@ -1064,8 +1064,8 @@ static void __exit camellia_fini(void) crypto_unregister_alg(&camellia_alg); } -module_init(camellia_init); -module_exit(camellia_fini); +crypto_module_init(camellia_init); +crypto_module_exit(camellia_fini); MODULE_DESCRIPTION("Camellia Cipher Algorithm"); MODULE_LICENSE("GPL"); -- 2.47.3