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