On Tue 03-03-20 14:58:35, Dan Williams wrote:
> 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]>

Looks good to me. You can add:

Reviewed-by: Jan Kara <[email protected]>

                                                                Honza

> ---
>  test/core.c |    8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/test/core.c b/test/core.c
> index 3aa746fe6786..5118d86483d4 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 && strcmp(name, "dax_pmem_compat") == 0)
> +                     continue;
> +
>               if (rc) {
>                       log_err(&log_ctx, "%s.ko: missing\n", name);
>                       break;
> 
-- 
Jan Kara <[email protected]>
SUSE Labs, CR
_______________________________________________
Linux-nvdimm mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to