xref: /OK3568_Linux_fs/kernel/tools/testing/nvdimm/config_check.c (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun // SPDX-License-Identifier: GPL-2.0
2*4882a593Smuzhiyun #include <linux/bug.h>
3*4882a593Smuzhiyun 
check(void)4*4882a593Smuzhiyun void check(void)
5*4882a593Smuzhiyun {
6*4882a593Smuzhiyun 	/*
7*4882a593Smuzhiyun 	 * These kconfig symbols must be set to "m" for nfit_test to
8*4882a593Smuzhiyun 	 * load and operate.
9*4882a593Smuzhiyun 	 */
10*4882a593Smuzhiyun 	BUILD_BUG_ON(!IS_MODULE(CONFIG_LIBNVDIMM));
11*4882a593Smuzhiyun 	BUILD_BUG_ON(!IS_MODULE(CONFIG_BLK_DEV_PMEM));
12*4882a593Smuzhiyun 	BUILD_BUG_ON(!IS_MODULE(CONFIG_ND_BTT));
13*4882a593Smuzhiyun 	BUILD_BUG_ON(!IS_MODULE(CONFIG_ND_PFN));
14*4882a593Smuzhiyun 	BUILD_BUG_ON(!IS_MODULE(CONFIG_ND_BLK));
15*4882a593Smuzhiyun 	BUILD_BUG_ON(!IS_MODULE(CONFIG_ACPI_NFIT));
16*4882a593Smuzhiyun 	BUILD_BUG_ON(!IS_MODULE(CONFIG_DEV_DAX));
17*4882a593Smuzhiyun 	BUILD_BUG_ON(!IS_MODULE(CONFIG_DEV_DAX_PMEM));
18*4882a593Smuzhiyun }
19