]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cxl/test: Adjust the mock version of devm_cxl_switch_port_decoders_setup()
authorDave Jiang <dave.jiang@intel.com>
Fri, 29 Aug 2025 18:09:26 +0000 (11:09 -0700)
committerDave Jiang <dave.jiang@intel.com>
Thu, 18 Sep 2025 16:55:23 +0000 (09:55 -0700)
commit644685abc16b58b3afcc2feb0ac14e86476ca2ed
tree5ec2bd83d6427447426aafc99e2aa89d1f0ce533
parentd96eb90d9ca6e4652c8a23d48c94364aa061fdc4
cxl/test: Adjust the mock version of devm_cxl_switch_port_decoders_setup()

With devm_cxl_switch_port_decoders_setup() being called within cxl_core
instead of by the port driver probe, adjustments are needed to deal with
circular symbol dependency when this function is being mock'd. Add the
appropriate changes to get around the circular dependency.

Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
drivers/cxl/core/hdm.c
drivers/cxl/cxl.h
tools/testing/cxl/Kbuild
tools/testing/cxl/cxl_core_exports.c
tools/testing/cxl/exports.h
tools/testing/cxl/test/mock.c