summaryrefslogtreecommitdiff
path: root/tools/testing/cxl/cxl_core_exports.c
diff options
context:
space:
mode:
authorDave Jiang <dave.jiang@intel.com>2023-11-06 10:26:45 -0700
committerDan Williams <dan.j.williams@intel.com>2023-12-04 16:46:14 -0800
commite05501e8a84eee4f819f31b9ce663bddd01b3b69 (patch)
tree6f7fffcfbb863653c38915046b1af0674e19ab3f /tools/testing/cxl/cxl_core_exports.c
parent0e33ac9c3ffe5e4f55c68345f44cea7fec2fe750 (diff)
cxl: Add cxl_num_decoders_committed() usage to cxl_test
Commit 458ba8189cb4 ("cxl: Add cxl_decoders_committed() helper") missed the conversion for cxl_test. Add usage of cxl_num_decoders_committed() to replace the open coding. Suggested-by: Alison Schofield <alison.schofield@intel.com> Signed-off-by: Dave Jiang <dave.jiang@intel.com> Reviewed-by: Fan Ni <fan.ni@samsung.com> Link: https://lore.kernel.org/r/169929160525.824083.11813222229025394254.stgit@djiang5-mobl3 Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'tools/testing/cxl/cxl_core_exports.c')
-rw-r--r--tools/testing/cxl/cxl_core_exports.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/testing/cxl/cxl_core_exports.c b/tools/testing/cxl/cxl_core_exports.c
new file mode 100644
index 000000000000..077e6883921d
--- /dev/null
+++ b/tools/testing/cxl/cxl_core_exports.c
@@ -0,0 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0
+/* Copyright(c) 2022 Intel Corporation. All rights reserved. */
+
+#include "cxl.h"
+
+/* Exporting of cxl_core symbols that are only used by cxl_test */
+EXPORT_SYMBOL_NS_GPL(cxl_num_decoders_committed, CXL);