Skip to content

Commit 26c5b0d

Browse files
aluceropdavejiang
authored andcommitted
cxl/test: remove unused mock function for cxl_rcd_component_reg_phys()
Since commit 733b57f ("cxl/pci: Early setup RCH dport component registers from RCRB") is not necessary under mocking tests. [ dj: Fixup commit representation flagged by checkpatch. ] [ dj: Ammend subject line to indicate which function. ] Signed-off-by: Alejandro Lucero <alucerop@amd.com> Reviewed-by: Dave Jiang <dave.jiang@intel.com>> --- Reviewed-by: Ira Weiny <ira.weiny@intel.com> Link: https://patch.msgid.link/20251118182202.2083244-1-alejandro.lucero-palau@amd.com Signed-off-by: Dave Jiang <dave.jiang@intel.com>
1 parent 8d27dd0 commit 26c5b0d

2 files changed

Lines changed: 0 additions & 18 deletions

File tree

tools/testing/cxl/Kbuild

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ ldflags-y += --wrap=acpi_pci_find_root
66
ldflags-y += --wrap=nvdimm_bus_register
77
ldflags-y += --wrap=cxl_await_media_ready
88
ldflags-y += --wrap=devm_cxl_add_rch_dport
9-
ldflags-y += --wrap=cxl_rcd_component_reg_phys
109
ldflags-y += --wrap=cxl_endpoint_parse_cdat
1110
ldflags-y += --wrap=cxl_dport_init_ras_reporting
1211
ldflags-y += --wrap=devm_cxl_endpoint_decoders_setup

tools/testing/cxl/test/mock.c

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -211,23 +211,6 @@ struct cxl_dport *__wrap_devm_cxl_add_rch_dport(struct cxl_port *port,
211211
}
212212
EXPORT_SYMBOL_NS_GPL(__wrap_devm_cxl_add_rch_dport, "CXL");
213213

214-
resource_size_t __wrap_cxl_rcd_component_reg_phys(struct device *dev,
215-
struct cxl_dport *dport)
216-
{
217-
int index;
218-
resource_size_t component_reg_phys;
219-
struct cxl_mock_ops *ops = get_cxl_mock_ops(&index);
220-
221-
if (ops && ops->is_mock_port(dev))
222-
component_reg_phys = CXL_RESOURCE_NONE;
223-
else
224-
component_reg_phys = cxl_rcd_component_reg_phys(dev, dport);
225-
put_cxl_mock_ops(index);
226-
227-
return component_reg_phys;
228-
}
229-
EXPORT_SYMBOL_NS_GPL(__wrap_cxl_rcd_component_reg_phys, "CXL");
230-
231214
void __wrap_cxl_endpoint_parse_cdat(struct cxl_port *port)
232215
{
233216
int index;

0 commit comments

Comments
 (0)