While there are some tests that require the new "dax-bus" device model,
none of the tests require compatibility mode. Drop the requirement so
the tests work with DEV_DAX_PMEM_COMPAT=n kernels.

Link: http://lore.kernel.org/r/[email protected]
Cc: Jan Kara <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
---
 test/core.c |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/test/core.c b/test/core.c
index 888f5d8c0e42..dff842a9f378 100644
--- a/test/core.c
+++ b/test/core.c
@@ -180,6 +180,14 @@ int nfit_test_init(struct kmod_ctx **ctx, struct 
kmod_module **mod,
 
 retry:
                rc = kmod_module_new_from_name(*ctx, name, mod);
+
+               /*
+                * dax_pmem_compat is not required, missing is ok,
+                * present-but-production is not ok.
+                */
+               if (rc && strstr(name, "dax_pmem_compat"))
+                       continue;
+
                if (rc) {
                        log_err(&log_ctx, "%s.ko: missing\n", name);
                        break;
_______________________________________________
Linux-nvdimm mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to