1
0

041-no_weak_alias.patch 548 B

123456789101112
  1. --- a/common/main.c
  2. +++ b/common/main.c
  3. @@ -47,8 +47,7 @@ DECLARE_GLOBAL_DATA_PTR;
  4. /*
  5. * Board-specific Platform code can reimplement show_boot_progress () if needed
  6. */
  7. -void inline __show_boot_progress (int val) {}
  8. -void show_boot_progress (int val) __attribute__((weak, alias("__show_boot_progress")));
  9. +void __attribute__((weak)) show_boot_progress(int val) {}
  10. #if defined(CONFIG_BOOT_RETRY_TIME) && defined(CONFIG_RESET_TO_RETRY)
  11. extern int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]); /* for do_reset() prototype */