diff mbox

[3/4] ndctl: move forward declarations of ndctl_[un]bind and to_module

Message ID 20151110003446.18262.42087.stgit@dwillia2-desk3.amr.corp.intel.com (mailing list archive)
State Accepted
Commit f801f03278fc
Headers show

Commit Message

Dan Williams Nov. 10, 2015, 12:34 a.m. UTC
These static declarations should never have been placed in
libndctl-private.h.  They cause problems when we go to add new source
files that include this header.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
 lib/libndctl-private.h |    5 -----
 lib/libndctl.c         |    5 +++++
 2 files changed, 5 insertions(+), 5 deletions(-)
diff mbox

Patch

diff --git a/lib/libndctl-private.h b/lib/libndctl-private.h
index 5326684c119f..78fbb2d46b42 100644
--- a/lib/libndctl-private.h
+++ b/lib/libndctl-private.h
@@ -170,9 +170,4 @@  static inline int check_kmod(struct kmod_ctx *kmod_ctx)
 	return kmod_ctx ? 0 : -ENXIO;
 }
 
-static int ndctl_bind(struct ndctl_ctx *ctx, struct kmod_module *module,
-		const char *devname);
-static int ndctl_unbind(struct ndctl_ctx *ctx, const char *devpath);
-static struct kmod_module *to_module(struct ndctl_ctx *ctx, const char *alias);
-
 #endif /* _LIBNDCTL_PRIVATE_H_ */
diff --git a/lib/libndctl.c b/lib/libndctl.c
index ea3947dd3e33..7db5b6013ab1 100644
--- a/lib/libndctl.c
+++ b/lib/libndctl.c
@@ -1123,6 +1123,11 @@  NDCTL_EXPORT int ndctl_bus_wait_probe(struct ndctl_bus *bus)
 	return rc < 0 ? -ENXIO : 0;
 }
 
+static int ndctl_bind(struct ndctl_ctx *ctx, struct kmod_module *module,
+		const char *devname);
+static int ndctl_unbind(struct ndctl_ctx *ctx, const char *devpath);
+static struct kmod_module *to_module(struct ndctl_ctx *ctx, const char *alias);
+
 static int add_dimm(void *parent, int id, const char *dimm_base)
 {
 	int rc = -ENOMEM;