162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0 262306a36Sopenharmony_ci#include <linux/bug.h> 362306a36Sopenharmony_ci 462306a36Sopenharmony_civoid check(void) 562306a36Sopenharmony_ci{ 662306a36Sopenharmony_ci /* 762306a36Sopenharmony_ci * These kconfig symbols must be set to "m" for nfit_test to 862306a36Sopenharmony_ci * load and operate. 962306a36Sopenharmony_ci */ 1062306a36Sopenharmony_ci BUILD_BUG_ON(!IS_MODULE(CONFIG_LIBNVDIMM)); 1162306a36Sopenharmony_ci BUILD_BUG_ON(!IS_MODULE(CONFIG_BLK_DEV_PMEM)); 1262306a36Sopenharmony_ci BUILD_BUG_ON(!IS_MODULE(CONFIG_ND_BTT)); 1362306a36Sopenharmony_ci BUILD_BUG_ON(!IS_MODULE(CONFIG_ND_PFN)); 1462306a36Sopenharmony_ci if (IS_ENABLED(CONFIG_ACPI_NFIT)) 1562306a36Sopenharmony_ci BUILD_BUG_ON(!IS_MODULE(CONFIG_ACPI_NFIT)); 1662306a36Sopenharmony_ci BUILD_BUG_ON(!IS_MODULE(CONFIG_DEV_DAX)); 1762306a36Sopenharmony_ci BUILD_BUG_ON(!IS_MODULE(CONFIG_DEV_DAX_PMEM)); 1862306a36Sopenharmony_ci} 19