summaryrefslogtreecommitdiffstats
path: root/tools/testing/cxl/config_check.c
blob: 99b56b5f6edf828cb51943be2d2bccf548d0e80a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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.
	 */
	BUILD_BUG_ON(!IS_ENABLED(CONFIG_64BIT));
	BUILD_BUG_ON(!IS_MODULE(CONFIG_CXL_BUS));
	BUILD_BUG_ON(!IS_MODULE(CONFIG_CXL_ACPI));
	BUILD_BUG_ON(!IS_MODULE(CONFIG_CXL_PMEM));
	BUILD_BUG_ON(!IS_ENABLED(CONFIG_CXL_REGION_INVALIDATION_TEST));
	BUILD_BUG_ON(!IS_ENABLED(CONFIG_NVDIMM_SECURITY_TEST));
}