* [PATCH] ndctl: fix ndctl_persistence_domain declaration
@ 2018-04-06 13:28 lukasz.plewa
2018-04-06 14:40 ` Dan Williams
0 siblings, 1 reply; 3+ messages in thread
From: lukasz.plewa @ 2018-04-06 13:28 UTC (permalink / raw)
To: linux-nvdimm
From: Łukasz Plewa <lukasz.plewa@intel.com>
the declaration of ndctl_persistence_domain should be above first use
of this enum
Reported-by: Kamil Diedrich <kamil.diedrich@intel.com>
Signed-off-by: Łukasz Plewa <lukasz.plewa@intel.com>
---
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);
--
2.7.4
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ndctl: fix ndctl_persistence_domain declaration
2018-04-06 13:28 [PATCH] ndctl: fix ndctl_persistence_domain declaration lukasz.plewa
@ 2018-04-06 14:40 ` Dan Williams
2018-04-06 21:39 ` Verma, Vishal L
0 siblings, 1 reply; 3+ messages in thread
From: Dan Williams @ 2018-04-06 14:40 UTC (permalink / raw)
To: Plewa, Lukasz; +Cc: linux-nvdimm
On Fri, Apr 6, 2018 at 6:28 AM, <lukasz.plewa@intel.com> wrote:
> From: Łukasz Plewa <lukasz.plewa@intel.com>
>
> the declaration of ndctl_persistence_domain should be above first use
> of this enum
>
> Reported-by: Kamil Diedrich <kamil.diedrich@intel.com>
> Signed-off-by: Łukasz Plewa <lukasz.plewa@intel.com>
> ---
> ndctl/libndctl.h | 14 +++++++-------
> 1 file changed, 7 insertions(+), 7 deletions(-)
Looks good,
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ndctl: fix ndctl_persistence_domain declaration
2018-04-06 14:40 ` Dan Williams
@ 2018-04-06 21:39 ` Verma, Vishal L
0 siblings, 0 replies; 3+ messages in thread
From: Verma, Vishal L @ 2018-04-06 21:39 UTC (permalink / raw)
To: Williams, Dan J, Plewa, Lukasz; +Cc: linux-nvdimm
On Fri, 2018-04-06 at 07:40 -0700, Dan Williams wrote:
> On Fri, Apr 6, 2018 at 6:28 AM, <lukasz.plewa@intel.com> wrote:
> > From: Łukasz Plewa <lukasz.plewa@intel.com>
> >
> > the declaration of ndctl_persistence_domain should be above first use
> > of this enum
> >
> > Reported-by: Kamil Diedrich <kamil.diedrich@intel.com>
> > Signed-off-by: Łukasz Plewa <lukasz.plewa@intel.com>
> > ---
> > ndctl/libndctl.h | 14 +++++++-------
> > 1 file changed, 7 insertions(+), 7 deletions(-)
>
> Looks good,
>
> Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Thanks, applied.
> _______________________________________________
> Linux-nvdimm mailing list
> Linux-nvdimm@lists.01.org
> https://lists.01.org/mailman/listinfo/linux-nvdimm
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-04-06 21:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-06 13:28 [PATCH] ndctl: fix ndctl_persistence_domain declaration lukasz.plewa
2018-04-06 14:40 ` Dan Williams
2018-04-06 21:39 ` Verma, Vishal L
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).