diff options
author | Tom Rini <trini@konsulko.com> | 2021-01-18 07:55:54 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-01-18 07:55:54 -0500 |
commit | 19c5fdffdc41bfd606b455b46e834d1bff4b2c1e (patch) | |
tree | db1c5abebf12e9aaef80d8e22a472357027b5287 /common/command.c | |
parent | 14ea1b3635b4af8d9e283e3671f7ee872d50b859 (diff) | |
parent | ad80a8d0877922db95fd0410314504c840d9d850 (diff) |
Merge branch '2021-01-16-assorted-improvements'
- Assorted testing improvements and fixes
- Assorted code cleanups
Diffstat (limited to 'common/command.c')
-rw-r--r-- | common/command.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/common/command.c b/common/command.c index 068cb55b4c..3fe6791eda 100644 --- a/common/command.c +++ b/common/command.c @@ -16,6 +16,8 @@ #include <log.h> #include <linux/ctype.h> +DECLARE_GLOBAL_DATA_PTR; + /* * Use puts() instead of printf() to avoid printf buffer overflow * for long help messages @@ -488,9 +490,6 @@ int cmd_get_data_size(char* arg, int default_size) } #endif -#if defined(CONFIG_NEEDS_MANUAL_RELOC) -DECLARE_GLOBAL_DATA_PTR; - void fixup_cmdtable(struct cmd_tbl *cmdtp, int size) { int i; @@ -535,7 +534,6 @@ void fixup_cmdtable(struct cmd_tbl *cmdtp, int size) cmdtp++; } } -#endif int cmd_always_repeatable(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[], int *repeatable) |