env: Move env_reloc() to env.h
Move env_reloc() over to the new header file.
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Simon Glass <sjg@chromium.org>
diff --git a/include/env.h b/include/env.h
index 42d8bcf..727f585 100644
--- a/include/env.h
+++ b/include/env.h
@@ -278,4 +278,11 @@
*/
int env_get_char(int index);
+/**
+ * env_reloc() - Relocate the 'env' sub-commands
+ *
+ * This is used for those unfortunate archs with crappy toolchains
+ */
+void env_reloc(void);
+
#endif
diff --git a/include/environment.h b/include/environment.h
index ea45b57..d23b928 100644
--- a/include/environment.h
+++ b/include/environment.h
@@ -158,10 +158,6 @@
extern const unsigned char default_environment[];
-#if defined(CONFIG_NEEDS_MANUAL_RELOC)
-extern void env_reloc(void);
-#endif
-
#ifndef DO_DEPS_ONLY
#include <env_attr.h>