watermark.h 688 B

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