18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci#include <linux/bug.h> 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_civoid check(void) 58c2ecf20Sopenharmony_ci{ 68c2ecf20Sopenharmony_ci /* 78c2ecf20Sopenharmony_ci * These kconfig symbols must be set to "m" for nfit_test to 88c2ecf20Sopenharmony_ci * load and operate. 98c2ecf20Sopenharmony_ci */ 108c2ecf20Sopenharmony_ci BUILD_BUG_ON(!IS_MODULE(CONFIG_LIBNVDIMM)); 118c2ecf20Sopenharmony_ci BUILD_BUG_ON(!IS_MODULE(CONFIG_BLK_DEV_PMEM)); 128c2ecf20Sopenharmony_ci BUILD_BUG_ON(!IS_MODULE(CONFIG_ND_BTT)); 138c2ecf20Sopenharmony_ci BUILD_BUG_ON(!IS_MODULE(CONFIG_ND_PFN)); 148c2ecf20Sopenharmony_ci BUILD_BUG_ON(!IS_MODULE(CONFIG_ND_BLK)); 158c2ecf20Sopenharmony_ci BUILD_BUG_ON(!IS_MODULE(CONFIG_ACPI_NFIT)); 168c2ecf20Sopenharmony_ci BUILD_BUG_ON(!IS_MODULE(CONFIG_DEV_DAX)); 178c2ecf20Sopenharmony_ci BUILD_BUG_ON(!IS_MODULE(CONFIG_DEV_DAX_PMEM)); 188c2ecf20Sopenharmony_ci} 19