2021-09-14 19:14:22 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#include <linux/bug.h>
|
|
|
|
|
|
|
|
void check(void)
|
|
|
|
{
|
|
|
|
/*
|
|
|
|
* These kconfig symbols must be set to "m" for cxl_test to load
|
|
|
|
* and operate.
|
|
|
|
*/
|
2022-12-19 19:50:50 +00:00
|
|
|
BUILD_BUG_ON(!IS_ENABLED(CONFIG_64BIT));
|
2021-09-14 19:14:22 +00:00
|
|
|
BUILD_BUG_ON(!IS_MODULE(CONFIG_CXL_BUS));
|
|
|
|
BUILD_BUG_ON(!IS_MODULE(CONFIG_CXL_ACPI));
|
|
|
|
BUILD_BUG_ON(!IS_MODULE(CONFIG_CXL_PMEM));
|
2022-12-05 19:44:41 +00:00
|
|
|
BUILD_BUG_ON(!IS_ENABLED(CONFIG_CXL_REGION_INVALIDATION_TEST));
|
|
|
|
BUILD_BUG_ON(!IS_ENABLED(CONFIG_NVDIMM_SECURITY_TEST));
|
2023-04-19 03:26:34 +00:00
|
|
|
BUILD_BUG_ON(!IS_ENABLED(CONFIG_DEBUG_FS));
|
2021-09-14 19:14:22 +00:00
|
|
|
}
|