1*8c149eb0SDan Williams // SPDX-License-Identifier: GPL-2.0 2*8c149eb0SDan Williams /* Copyright(c) 2022 Intel Corporation. All rights reserved. */ 3*8c149eb0SDan Williams #ifndef _TEST_CXL_WATERMARK_H_ 4*8c149eb0SDan Williams #define _TEST_CXL_WATERMARK_H_ 5*8c149eb0SDan Williams #include <linux/module.h> 6*8c149eb0SDan Williams #include <linux/printk.h> 7*8c149eb0SDan Williams 8*8c149eb0SDan Williams int cxl_acpi_test(void); 9*8c149eb0SDan Williams int cxl_core_test(void); 10*8c149eb0SDan Williams int cxl_mem_test(void); 11*8c149eb0SDan Williams int cxl_pmem_test(void); 12*8c149eb0SDan Williams int cxl_port_test(void); 13*8c149eb0SDan Williams 14*8c149eb0SDan Williams /* 15*8c149eb0SDan Williams * dummy routine for cxl_test to validate it is linking to the properly 16*8c149eb0SDan Williams * mocked module and not the standard one from the base tree. 17*8c149eb0SDan Williams */ 18*8c149eb0SDan Williams #define cxl_test_watermark(x) \ 19*8c149eb0SDan Williams int x##_test(void) \ 20*8c149eb0SDan Williams { \ 21*8c149eb0SDan Williams pr_debug("%s for cxl_test\n", KBUILD_MODNAME); \ 22*8c149eb0SDan Williams return 0; \ 23*8c149eb0SDan Williams } \ 24*8c149eb0SDan Williams EXPORT_SYMBOL(x##_test) 25*8c149eb0SDan Williams #endif /* _TEST_CXL_WATERMARK_H_ */ 26