diff options
| author | Dan Williams <dan.j.williams@intel.com> | 2026-03-27 08:28:17 +0300 |
|---|---|---|
| committer | Dave Jiang <dave.jiang@intel.com> | 2026-04-01 18:12:17 +0300 |
| commit | 3cba30eed56df3af80ae8d4fde9cf4039eace82a (patch) | |
| tree | e60b2d28d0822b7de5a4fe28820280a36b165f72 | |
| parent | 471d88441eb990ef1b64713e6975cb3549b1824b (diff) | |
| download | linux-3cba30eed56df3af80ae8d4fde9cf4039eace82a.tar.xz | |
dax/hmem: Reduce visibility of dax_cxl coordination symbols
No other module or use case should be using dax_hmem_initial_probe or
dax_hmem_flush_work(). Limit their use to dax_hmem, and dax_cxl
respectively.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://patch.msgid.link/20260327052821.440749-6-dan.j.williams@intel.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
| -rw-r--r-- | drivers/dax/hmem/device.c | 2 | ||||
| -rw-r--r-- | drivers/dax/hmem/hmem.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dax/hmem/device.c b/drivers/dax/hmem/device.c index 991a4bf7d969..675d56276d78 100644 --- a/drivers/dax/hmem/device.c +++ b/drivers/dax/hmem/device.c @@ -9,7 +9,7 @@ static bool nohmem; module_param_named(disable, nohmem, bool, 0444); bool dax_hmem_initial_probe; -EXPORT_SYMBOL_GPL(dax_hmem_initial_probe); +EXPORT_SYMBOL_FOR_MODULES(dax_hmem_initial_probe, "dax_hmem"); static bool platform_initialized; static DEFINE_MUTEX(hmem_resource_lock); diff --git a/drivers/dax/hmem/hmem.c b/drivers/dax/hmem/hmem.c index b2ab1292fa81..dd3d7f93baee 100644 --- a/drivers/dax/hmem/hmem.c +++ b/drivers/dax/hmem/hmem.c @@ -74,7 +74,7 @@ void dax_hmem_flush_work(void) { flush_work(&dax_hmem_work.work); } -EXPORT_SYMBOL_GPL(dax_hmem_flush_work); +EXPORT_SYMBOL_FOR_MODULES(dax_hmem_flush_work, "dax_cxl"); static int __hmem_register_device(struct device *host, int target_nid, const struct resource *res) |
