cxl: Add cxl_num_decoders_committed() usage to cxl_test
authorDave Jiang <dave.jiang@intel.com>
Mon, 6 Nov 2023 17:26:45 +0000 (10:26 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 5 Dec 2023 00:46:14 +0000 (16:46 -0800)
commite05501e8a84eee4f819f31b9ce663bddd01b3b69
tree6f7fffcfbb863653c38915046b1af0674e19ab3f
parent0e33ac9c3ffe5e4f55c68345f44cea7fec2fe750
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>
tools/testing/cxl/Kbuild
tools/testing/cxl/cxl_core_exports.c [new file with mode: 0644]
tools/testing/cxl/test/cxl.c