summaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-ar71xx/patches/041-no_weak_alias.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-09-06 09:57:02 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-09-06 09:57:02 +0000
commitedb5d7511bd76a091b1f52d757520cc2e1762590 (patch)
treed88e3aab322dab82e41239325e14123b369b165e /package/boot/uboot-ar71xx/patches/041-no_weak_alias.patch
parent8b4df1efd58c692168b8ea7e664bed4dc3fd600b (diff)
downloadmaster-31e0f0ae-edb5d7511bd76a091b1f52d757520cc2e1762590.tar.gz
master-31e0f0ae-edb5d7511bd76a091b1f52d757520cc2e1762590.tar.bz2
master-31e0f0ae-edb5d7511bd76a091b1f52d757520cc2e1762590.zip
uboot-ar71xx: fix gcc 5.2 compile errors
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 46797
Diffstat (limited to 'package/boot/uboot-ar71xx/patches/041-no_weak_alias.patch')
-rw-r--r--package/boot/uboot-ar71xx/patches/041-no_weak_alias.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/boot/uboot-ar71xx/patches/041-no_weak_alias.patch b/package/boot/uboot-ar71xx/patches/041-no_weak_alias.patch
new file mode 100644
index 0000000000..b6f18edff3
--- /dev/null
+++ b/package/boot/uboot-ar71xx/patches/041-no_weak_alias.patch
@@ -0,0 +1,12 @@
+--- a/common/main.c
++++ b/common/main.c
+@@ -47,8 +47,7 @@ DECLARE_GLOBAL_DATA_PTR;
+ /*
+ * Board-specific Platform code can reimplement show_boot_progress () if needed
+ */
+-void inline __show_boot_progress (int val) {}
+-void show_boot_progress (int val) __attribute__((weak, alias("__show_boot_progress")));
++void __attribute__((weak)) show_boot_progress(int val) {}
+
+ #if defined(CONFIG_BOOT_RETRY_TIME) && defined(CONFIG_RESET_TO_RETRY)
+ extern int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]); /* for do_reset() prototype */