b6f18edff36696033f55a270a218424bf01de0d2
[openwrt/openwrt.git] / package / boot / uboot-ar71xx / patches / 041-no_weak_alias.patch
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
11 #if defined(CONFIG_BOOT_RETRY_TIME) && defined(CONFIG_RESET_TO_RETRY)
12 extern int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]); /* for do_reset() prototype */