config_check.c 387 B

123456789101112131415
  1. #include <linux/kconfig.h>
  2. #include <linux/bug.h>
  3. void check(void)
  4. {
  5. /*
  6. * These kconfig symbols must be set to "m" for nfit_test to
  7. * load and operate.
  8. */
  9. BUILD_BUG_ON(!IS_MODULE(CONFIG_LIBNVDIMM));
  10. BUILD_BUG_ON(!IS_MODULE(CONFIG_BLK_DEV_PMEM));
  11. BUILD_BUG_ON(!IS_MODULE(CONFIG_ND_BTT));
  12. BUILD_BUG_ON(!IS_MODULE(CONFIG_ND_BLK));
  13. BUILD_BUG_ON(!IS_MODULE(CONFIG_ACPI_NFIT));
  14. }