blob: cac891028cd1bf7aeb0297cea743b114e60d886e [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Dan Williams6bc75612015-06-17 17:23:32 -04002#include <linux/bug.h>
3
4void check(void)
5{
6 /*
7 * These kconfig symbols must be set to "m" for nfit_test to
8 * load and operate.
9 */
10 BUILD_BUG_ON(!IS_MODULE(CONFIG_LIBNVDIMM));
11 BUILD_BUG_ON(!IS_MODULE(CONFIG_BLK_DEV_PMEM));
12 BUILD_BUG_ON(!IS_MODULE(CONFIG_ND_BTT));
Dan Williams6b0a57e2016-06-06 17:03:17 -070013 BUILD_BUG_ON(!IS_MODULE(CONFIG_ND_PFN));
Dan Williams6bc75612015-06-17 17:23:32 -040014 BUILD_BUG_ON(!IS_MODULE(CONFIG_ND_BLK));
15 BUILD_BUG_ON(!IS_MODULE(CONFIG_ACPI_NFIT));
Dan Williamsab68f262016-05-18 09:15:08 -070016 BUILD_BUG_ON(!IS_MODULE(CONFIG_DEV_DAX));
17 BUILD_BUG_ON(!IS_MODULE(CONFIG_DEV_DAX_PMEM));
Dan Williams6bc75612015-06-17 17:23:32 -040018}