aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/nvdimm/config_check.c
diff options
context:
space:
mode:
authorSantosh Sivaraj <santosh@fossix.org>2020-12-22 09:52:34 +0530
committerDan Williams <dan.j.williams@intel.com>2021-01-28 00:22:48 -0800
commit9a27e109a391c9021147553b97c3fe4356e2261c (patch)
tree161d1901f9fc587d221176a5f12f02b1edb02ccd /tools/testing/nvdimm/config_check.c
parentlibnvdimm/namespace: Fix visibility of namespace resource attribute (diff)
downloadlinux-dev-9a27e109a391c9021147553b97c3fe4356e2261c.tar.xz
linux-dev-9a27e109a391c9021147553b97c3fe4356e2261c.zip
testing/nvdimm: Add test module for non-nfit platforms
The current test module cannot be used for testing platforms (make check) that do not have support for NFIT. In order to get the ndctl tests working, we need a module which can emulate NVDIMM devices without relying on ACPI/NFIT. The aim of this proposed module is to implement a similar functionality to the existing module but without the ACPI dependencies. This RFC series is split into reviewable and compilable chunks. This patch adds a new driver and registers two nvdimm bus needed for ndctl make check. Signed-off-by: Santosh Sivaraj <santosh@fossix.org> Link: https://lore.kernel.org/r/20201222042240.2983755-2-santosh@fossix.org Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'tools/testing/nvdimm/config_check.c')
-rw-r--r--tools/testing/nvdimm/config_check.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/nvdimm/config_check.c b/tools/testing/nvdimm/config_check.c
index cac891028cd1..3e3a5f518864 100644
--- a/tools/testing/nvdimm/config_check.c
+++ b/tools/testing/nvdimm/config_check.c
@@ -12,7 +12,8 @@ void check(void)
BUILD_BUG_ON(!IS_MODULE(CONFIG_ND_BTT));
BUILD_BUG_ON(!IS_MODULE(CONFIG_ND_PFN));
BUILD_BUG_ON(!IS_MODULE(CONFIG_ND_BLK));
- BUILD_BUG_ON(!IS_MODULE(CONFIG_ACPI_NFIT));
+ if (IS_ENABLED(CONFIG_ACPI_NFIT))
+ BUILD_BUG_ON(!IS_MODULE(CONFIG_ACPI_NFIT));
BUILD_BUG_ON(!IS_MODULE(CONFIG_DEV_DAX));
BUILD_BUG_ON(!IS_MODULE(CONFIG_DEV_DAX_PMEM));
}