Skip to content

Commit

Permalink
ndctl/test: Relax dax_pmem_compat requirement
Browse files Browse the repository at this point in the history
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.

Reviewed-by: Jan Kara <jack@suse.cz>
Cc: Jan Kara <jack@suse.cz>
Link: http://lore.kernel.org/r/20200123154720.12097-1-jack@suse.cz
Link: https://lore.kernel.org/r/158327631566.2222444.16879386597302511191.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
  • Loading branch information
djbw committed Mar 20, 2020
1 parent ea08330 commit b7991db
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/core.c
Expand Up @@ -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 && strcmp(name, "dax_pmem_compat") == 0)
continue;

if (rc) {
log_err(&log_ctx, "%s.ko: missing\n", name);
break;
Expand Down

0 comments on commit b7991db

Please sign in to comment.