From patchwork Fri Apr 6 13:28:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lukasz Plewa X-Patchwork-Id: 10326259 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CF8F56053F for ; Fri, 6 Apr 2018 13:32:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BFCB929342 for ; Fri, 6 Apr 2018 13:32:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B420C29515; Fri, 6 Apr 2018 13:32:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.2 required=2.0 tests=BAYES_50, MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4062829515 for ; Fri, 6 Apr 2018 13:32:31 +0000 (UTC) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 7D52F22685235; Fri, 6 Apr 2018 06:32:31 -0700 (PDT) X-Original-To: linux-nvdimm@lists.01.org Delivered-To: linux-nvdimm@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.93; helo=mga11.intel.com; envelope-from=lukasz.plewa@intel.com; receiver=linux-nvdimm@lists.01.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (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 C92AB2210D9ED for ; Fri, 6 Apr 2018 06:32:29 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Apr 2018 06:32:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,415,1517904000"; d="scan'208";a="43998013" Received: from gklab-124-122.igk.intel.com (HELO localhost) ([10.91.124.122]) by fmsmga004.fm.intel.com with ESMTP; 06 Apr 2018 06:32:28 -0700 From: lukasz.plewa@intel.com To: linux-nvdimm@lists.01.org Subject: [PATCH] ndctl: fix ndctl_persistence_domain declaration Date: Fri, 6 Apr 2018 15:28:54 +0200 Message-Id: <1523021334-9976-1-git-send-email-lukasz.plewa@intel.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-BeenThere: linux-nvdimm@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: "Linux-nvdimm developer list." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" X-Virus-Scanned: ClamAV using ClamSMTP From: Łukasz Plewa the declaration of ndctl_persistence_domain should be above first use of this enum Reported-by: Kamil Diedrich Signed-off-by: Łukasz Plewa Reviewed-by: Dan Williams --- ndctl/libndctl.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ndctl/libndctl.h b/ndctl/libndctl.h index cf6a77f..684fcd4 100644 --- a/ndctl/libndctl.h +++ b/ndctl/libndctl.h @@ -97,6 +97,13 @@ void ndctl_set_log_priority(struct ndctl_ctx *ctx, int priority); void ndctl_set_userdata(struct ndctl_ctx *ctx, void *userdata); void *ndctl_get_userdata(struct ndctl_ctx *ctx); +enum ndctl_persistence_domain { + PERSISTENCE_NONE = 0, + PERSISTENCE_MEM_CTRL = 10, + PERSISTENCE_CPU_CACHE = 20, + PERSISTENCE_UNKNOWN = INT_MAX, +}; + struct ndctl_bus; struct ndctl_bus *ndctl_bus_get_first(struct ndctl_ctx *ctx); struct ndctl_bus *ndctl_bus_get_next(struct ndctl_bus *bus); @@ -309,13 +316,6 @@ struct badblock { unsigned int len; }; -enum ndctl_persistence_domain { - PERSISTENCE_NONE = 0, - PERSISTENCE_MEM_CTRL = 10, - PERSISTENCE_CPU_CACHE = 20, - PERSISTENCE_UNKNOWN = INT_MAX, -}; - struct ndctl_region; struct ndctl_region *ndctl_region_get_first(struct ndctl_bus *bus); struct ndctl_region *ndctl_region_get_next(struct ndctl_region *region);