From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (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 47FCE1F4CAF; Fri, 1 Aug 2025 04:36:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754023015; cv=none; b=B2yehmHKdaQicm8OC5vJHY6WKtCaptlJUoBQ72ktWbdVl7Ni8GaK5aYO+RilkvPp6ZrTYcUdsnD+/qjmvyOiCD32/pYF4p2gcTs3EOzwy+OGQF9EgAYo9Zx+spsb6DLN1hU1Y51JWs+1S3zjJ2luMkHzJpypOtZ8gB7OIhHX6GM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754023015; c=relaxed/simple; bh=P4JBrgCnTQJ+vJSFYLtwJFoo0LDT4F3zOWbqR1090lo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=eBYvwRCftiSEV7qYZ7TNIpPz4dRAsCF1OakiDKot53FbfsZN5/EHEQ4MqINHPzQZpP3a+THP7YASwi87rS/uXVfXTB7IRhQoNOeOuWEnvJMuV3lxwdvqKLPKKzj9ruktBEs+aDLOpSJHjSDNwgHUUyYOeUu9fInMx/kyluZNF30= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=mq6//Tct; arc=none smtp.client-ip=198.175.65.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="mq6//Tct" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1754023013; x=1785559013; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=P4JBrgCnTQJ+vJSFYLtwJFoo0LDT4F3zOWbqR1090lo=; b=mq6//TctQZW7EflwAUkeqkioYPW7B4MIFe38Vdi7sqH3rBAdNzX3H2WC HBh2EqzC5QSNfKXzshDuu8s/2X2mc9lz8REDYY/abUFsyEiQzn1F9nbSj CxTtXiL3HrXCCoxDEC8uxhK6+0N0qm1I5JRTJpUC+mtFdW/v418Emwgnj hSDfbes9691QSmGG7rR+TvtnGnRA5CG3LL3bbiSnRwvN6pyls1H23Neix KsdAjhQ9JovpQ8YGlE1ornoLP0D1FRe+mrEnOKQ6adIPI1DBmW3XbgfJQ Qo+urE+D0lZKi0adwu4QRXs4AwqTJuhrUuQVlO2bx0ktDaUCcAQHoXRFF g==; X-CSE-ConnectionGUID: nbt03jYDRomRfDPUJasJ+g== X-CSE-MsgGUID: 5FhTyQc8QLyMywsZ5SD+ZQ== X-IronPort-AV: E=McAfee;i="6800,10657,11508"; a="73820248" X-IronPort-AV: E=Sophos;i="6.17,255,1747724400"; d="scan'208";a="73820248" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jul 2025 21:36:45 -0700 X-CSE-ConnectionGUID: jJmM6HxHRhqwTR4OK+OSGQ== X-CSE-MsgGUID: UR0k20myRdinTdFYmIFb2g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.17,255,1747724400"; d="scan'208";a="163796254" Received: from jf5300-b11a338t.jf.intel.com ([10.242.51.115]) by orviesa008.jf.intel.com with ESMTP; 31 Jul 2025 21:36:44 -0700 From: Kanchana P Sridhar To: linux-kernel@vger.kernel.org, linux-mm@kvack.org, hannes@cmpxchg.org, yosry.ahmed@linux.dev, nphamcs@gmail.com, chengming.zhou@linux.dev, usamaarif642@gmail.com, ryan.roberts@arm.com, 21cnbao@gmail.com, ying.huang@linux.alibaba.com, akpm@linux-foundation.org, senozhatsky@chromium.org, linux-crypto@vger.kernel.org, herbert@gondor.apana.org.au, davem@davemloft.net, clabbe@baylibre.com, ardb@kernel.org, ebiggers@google.com, surenb@google.com, kristen.c.accardi@intel.com, vinicius.gomes@intel.com Cc: wajdi.k.feghali@intel.com, vinodh.gopal@intel.com, kanchana.p.sridhar@intel.com Subject: [PATCH v11 09/24] crypto: iaa - Deprecate exporting add/remove IAA compression modes. Date: Thu, 31 Jul 2025 21:36:27 -0700 Message-Id: <20250801043642.8103-10-kanchana.p.sridhar@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20250801043642.8103-1-kanchana.p.sridhar@intel.com> References: <20250801043642.8103-1-kanchana.p.sridhar@intel.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 There is no use case right now for kernel users to dynamically add/remove IAA compression modes; hence this commit deletes the symbol exports of add_iaa_compression_mode() and remove_iaa_compression_mode(). The only supported usage model of IAA compression modes is for the code to be statically linked during the iaa_crypto module build, e.g. iaa_crypto_comp_fixed.c, and for available modes to be registered when the first IAA device wq is probed. Signed-off-by: Kanchana P Sridhar --- drivers/crypto/intel/iaa/iaa_crypto_main.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/crypto/intel/iaa/iaa_crypto_main.c b/drivers/crypto/intel/iaa/iaa_crypto_main.c index 63d0cb4015433..182c41816a97c 100644 --- a/drivers/crypto/intel/iaa/iaa_crypto_main.c +++ b/drivers/crypto/intel/iaa/iaa_crypto_main.c @@ -367,10 +367,6 @@ static void free_iaa_compression_mode(struct iaa_compression_mode *mode) * These tables are typically generated and captured using statistics * collected from running actual compress/decompress workloads. * - * A module or other kernel code can add and remove compression modes - * with a given name using the exported @add_iaa_compression_mode() - * and @remove_iaa_compression_mode functions. - * * When a new compression mode is added, the tables are saved in a * global compression mode list. When IAA devices are added, a * per-IAA device dma mapping is created for each IAA device, for each @@ -404,7 +400,6 @@ void remove_iaa_compression_mode(const char *name) out: mutex_unlock(&iaa_devices_lock); } -EXPORT_SYMBOL_GPL(remove_iaa_compression_mode); /** * add_iaa_compression_mode - Add an IAA compression mode @@ -481,7 +476,6 @@ int add_iaa_compression_mode(const char *name, free_iaa_compression_mode(mode); goto out; } -EXPORT_SYMBOL_GPL(add_iaa_compression_mode); static void free_device_compression_mode(struct iaa_device *iaa_device, struct iaa_device_compression_mode *device_mode) -- 2.27.0