mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-17 17:10:26 -05:00
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>
14 lines
463 B
C
14 lines
463 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright(c) 2025 Intel Corporation */
|
|
#ifndef __MOCK_CXL_EXPORTS_H_
|
|
#define __MOCK_CXL_EXPORTS_H_
|
|
|
|
typedef struct cxl_dport *(*cxl_add_dport_by_dev_fn)(struct cxl_port *port,
|
|
struct device *dport_dev);
|
|
extern cxl_add_dport_by_dev_fn _devm_cxl_add_dport_by_dev;
|
|
|
|
typedef int(*cxl_switch_decoders_setup_fn)(struct cxl_port *port);
|
|
extern cxl_switch_decoders_setup_fn _devm_cxl_switch_port_decoders_setup;
|
|
|
|
#endif
|