Now that we may compile (but not link) code calling fixup_cmdtable when
this is not set, we need to always have the declaration available. We
should also make sure that anyone calling the function includes
<command.h> as that's where the function declaration is.
Signed-off-by: Tom Rini <trini@konsulko.com>
#if defined(CONFIG_CMD_BEDBUG)
#include <bedbug/type.h>
#endif
#if defined(CONFIG_CMD_BEDBUG)
#include <bedbug/type.h>
#endif
#include <console.h>
#ifdef CONFIG_HAS_DATAFLASH
#include <dataflash.h>
#include <console.h>
#ifdef CONFIG_HAS_DATAFLASH
#include <dataflash.h>
int cmd_process(int flag, int argc, char * const argv[],
int *repeatable, unsigned long *ticks);
int cmd_process(int flag, int argc, char * const argv[],
int *repeatable, unsigned long *ticks);
+void fixup_cmdtable(cmd_tbl_t *cmdtp, int size);
#endif /* __ASSEMBLY__ */
/*
#endif /* __ASSEMBLY__ */
/*
#define U_BOOT_CMD(_name, _maxargs, _rep, _cmd, _usage, _help) \
U_BOOT_CMD_COMPLETE(_name, _maxargs, _rep, _cmd, _usage, _help, NULL)
#define U_BOOT_CMD(_name, _maxargs, _rep, _cmd, _usage, _help) \
U_BOOT_CMD_COMPLETE(_name, _maxargs, _rep, _cmd, _usage, _help, NULL)
-#if defined(CONFIG_NEEDS_MANUAL_RELOC)
-void fixup_cmdtable(cmd_tbl_t *cmdtp, int size);
-#endif
-
#include <dm.h>
#include <malloc.h>
#include <mapmem.h>
#include <dm.h>
#include <malloc.h>
#include <mapmem.h>