@@ -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_ */
@@ -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;
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(-)