mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 21:38:32 +08:00
878b2de67a
The typical environment where cxl_test is run, QEMU, does not support cpu_cache_invalidate_memregion(). Add the 'test' bypass symbols to the configuration check. Reported-by: Alison Schofield <alison.schofield@intel.com> Reviewed-by: Dave Jiang <dave.jiang@intel.com> Link: https://lore.kernel.org/r/167026948179.3527561.4535373655515827457.stgit@dwillia2-xfh.jf.intel.com Signed-off-by: Dan Williams <dan.j.williams@intel.com>
16 lines
426 B
C
16 lines
426 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#include <linux/bug.h>
|
|
|
|
void check(void)
|
|
{
|
|
/*
|
|
* These kconfig symbols must be set to "m" for cxl_test to load
|
|
* and operate.
|
|
*/
|
|
BUILD_BUG_ON(!IS_MODULE(CONFIG_CXL_BUS));
|
|
BUILD_BUG_ON(!IS_MODULE(CONFIG_CXL_ACPI));
|
|
BUILD_BUG_ON(!IS_MODULE(CONFIG_CXL_PMEM));
|
|
BUILD_BUG_ON(!IS_ENABLED(CONFIG_CXL_REGION_INVALIDATION_TEST));
|
|
BUILD_BUG_ON(!IS_ENABLED(CONFIG_NVDIMM_SECURITY_TEST));
|
|
}
|