// SPDX-License-Identifier: GPL-2.0-only /* Copyright(c) 2023 Huawei. All rights reserved. */ #include <linux/device.h> #include <linux/slab.h> #include <linux/idr.h> #include <cxlmem.h> #include <pmu.h> #include <cxl.h> #include "core.h" static void cxl_pmu_release(struct device *dev) { … } const struct device_type cxl_pmu_type = …; static void remove_dev(void *dev) { … } int devm_cxl_pmu_add(struct device *parent, struct cxl_pmu_regs *regs, int assoc_id, int index, enum cxl_pmu_type type) { … } EXPORT_SYMBOL_NS_GPL(…);