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 cxl_test to load 862306a36Sopenharmony_ci * and operate. 962306a36Sopenharmony_ci */ 1062306a36Sopenharmony_ci BUILD_BUG_ON(!IS_ENABLED(CONFIG_64BIT)); 1162306a36Sopenharmony_ci BUILD_BUG_ON(!IS_MODULE(CONFIG_CXL_BUS)); 1262306a36Sopenharmony_ci BUILD_BUG_ON(!IS_MODULE(CONFIG_CXL_ACPI)); 1362306a36Sopenharmony_ci BUILD_BUG_ON(!IS_MODULE(CONFIG_CXL_PMEM)); 1462306a36Sopenharmony_ci BUILD_BUG_ON(!IS_ENABLED(CONFIG_CXL_REGION_INVALIDATION_TEST)); 1562306a36Sopenharmony_ci BUILD_BUG_ON(!IS_ENABLED(CONFIG_NVDIMM_SECURITY_TEST)); 1662306a36Sopenharmony_ci BUILD_BUG_ON(!IS_ENABLED(CONFIG_DEBUG_FS)); 1762306a36Sopenharmony_ci} 18