diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-09-06 09:57:02 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-09-06 09:57:02 +0000 |
commit | 09afa7b9e5a5655af074e370061516047bae8434 (patch) | |
tree | 59e1d9f41fea3915d1aaf130295139ad3b27d666 /package/boot/uboot-ar71xx/patches/041-no_weak_alias.patch | |
parent | 897157d1c3224a676d72115df7d42d1cef9f5655 (diff) | |
download | master-187ad058-09afa7b9e5a5655af074e370061516047bae8434.tar.gz master-187ad058-09afa7b9e5a5655af074e370061516047bae8434.tar.bz2 master-187ad058-09afa7b9e5a5655af074e370061516047bae8434.zip |
uboot-ar71xx: fix gcc 5.2 compile errors
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46797 3c298f89-4303-0410-b956-a3cf2f4a3e73
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.patch | 12 |
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 */ |