xref: /kernel/linux/linux-6.6/tools/testing/cxl/config_check.c (revision 62306a36)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/tools/testing/cxl/
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

Indexes created Thu Nov 07 10:32:03 CST 2024