1 // SPDX-License-Identifier: GPL-2.0 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright(c) 2018 Intel Corporation. All ri 2 // Copyright(c) 2018 Intel Corporation. All rights reserved. 3 #ifndef _TEST_NVDIMM_WATERMARK_H_ 3 #ifndef _TEST_NVDIMM_WATERMARK_H_ 4 #define _TEST_NVDIMM_WATERMARK_H_ 4 #define _TEST_NVDIMM_WATERMARK_H_ 5 int pmem_test(void); 5 int pmem_test(void); 6 int libnvdimm_test(void); 6 int libnvdimm_test(void); 7 int acpi_nfit_test(void); 7 int acpi_nfit_test(void); 8 int device_dax_test(void); 8 int device_dax_test(void); 9 int dax_pmem_test(void); 9 int dax_pmem_test(void); 10 int dax_pmem_core_test(void); 10 int dax_pmem_core_test(void); 11 int dax_pmem_compat_test(void); 11 int dax_pmem_compat_test(void); 12 12 13 /* 13 /* 14 * dummy routine for nfit_test to validate it 14 * dummy routine for nfit_test to validate it is linking to the properly 15 * mocked module and not the standard one from 15 * mocked module and not the standard one from the base tree. 16 */ 16 */ 17 #define nfit_test_watermark(x) 17 #define nfit_test_watermark(x) \ 18 int x##_test(void) 18 int x##_test(void) \ 19 { 19 { \ 20 pr_debug("%s for nfit_test\n", KBUILD_ 20 pr_debug("%s for nfit_test\n", KBUILD_MODNAME); \ 21 return 0; 21 return 0; \ 22 } 22 } \ 23 EXPORT_SYMBOL(x##_test) 23 EXPORT_SYMBOL(x##_test) 24 #endif /* _TEST_NVDIMM_WATERMARK_H_ */ 24 #endif /* _TEST_NVDIMM_WATERMARK_H_ */ 25 25
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.