From patchwork Tue Mar 3 22:58:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Williams X-Patchwork-Id: 11418887 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E9ED392A for ; Tue, 3 Mar 2020 23:14:43 +0000 (UTC) Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D21E020CC7 for ; Tue, 3 Mar 2020 23:14:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D21E020CC7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-nvdimm-bounces@lists.01.org Received: from ml01.vlan13.01.org (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 2C3A610FC361A; Tue, 3 Mar 2020 15:15:35 -0800 (PST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=134.134.136.65; helo=mga03.intel.com; envelope-from=dan.j.williams@intel.com; receiver= Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 475FC10FC3617 for ; Tue, 3 Mar 2020 15:15:32 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Mar 2020 15:14:41 -0800 X-IronPort-AV: E=Sophos;i="5.70,511,1574150400"; d="scan'208";a="258543880" Received: from dwillia2-desk3.jf.intel.com (HELO dwillia2-desk3.amr.corp.intel.com) ([10.54.39.16]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Mar 2020 15:14:40 -0800 Subject: [ndctl PATCH v2 2/2] ndctl/test: Relax dax_pmem_compat requirement From: Dan Williams To: linux-nvdimm@lists.01.org Date: Tue, 03 Mar 2020 14:58:35 -0800 Message-ID: <158327631566.2222444.16879386597302511191.stgit@dwillia2-desk3.amr.corp.intel.com> In-Reply-To: <158300774836.2141307.13052648687237614794.stgit@dwillia2-desk3.amr.corp.intel.com> References: <158300774836.2141307.13052648687237614794.stgit@dwillia2-desk3.amr.corp.intel.com> User-Agent: StGit/0.18-3-g996c MIME-Version: 1.0 Message-ID-Hash: 2CPK72PR7JNCLRITY76OF3K4F65757XP X-Message-ID-Hash: 2CPK72PR7JNCLRITY76OF3K4F65757XP X-MailFrom: dan.j.williams@intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: Jan Kara X-Mailman-Version: 3.1.1 Precedence: list List-Id: "Linux-nvdimm developer list." Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: 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/20200123154720.12097-1-jack@suse.cz Cc: Jan Kara Signed-off-by: Dan Williams Reviewed-by: Jan Kara --- 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;