Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 2 | #include <linux/bug.h> |
| 3 | |
| 4 | void 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 Williams | 6b0a57e | 2016-06-06 17:03:17 -0700 | [diff] [blame] | 13 | BUILD_BUG_ON(!IS_MODULE(CONFIG_ND_PFN)); |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 14 | BUILD_BUG_ON(!IS_MODULE(CONFIG_ND_BLK)); |
Santosh Sivaraj | 9a27e10 | 2020-12-22 09:52:34 +0530 | [diff] [blame] | 15 | if (IS_ENABLED(CONFIG_ACPI_NFIT)) |
| 16 | BUILD_BUG_ON(!IS_MODULE(CONFIG_ACPI_NFIT)); |
Dan Williams | ab68f26 | 2016-05-18 09:15:08 -0700 | [diff] [blame] | 17 | BUILD_BUG_ON(!IS_MODULE(CONFIG_DEV_DAX)); |
| 18 | BUILD_BUG_ON(!IS_MODULE(CONFIG_DEV_DAX_PMEM)); |
Dan Williams | 6bc7561 | 2015-06-17 17:23:32 -0400 | [diff] [blame] | 19 | } |