uboot-omap: fix build with gcc-5
[openwrt/svn-archive/archive.git] / package / boot / uboot-omap / patches / 430-use-weak-in-main.patch
1 From: Jeroen Hofstee <jeroen@myspectrum.nl>
2 Date: Thu, 26 Jun 2014 18:18:31 +0000 (+0200)
3 Subject: common: main.c: make show_boot_progress __weak
4 X-Git-Tag: v2014.10-rc1~130
5 X-Git-Url: http://git.denx.de/?p=u-boot.git;a=commitdiff_plain;h=3422299dc28fa8257677d03cc1253e3c9bf17e9f
6
7 common: main.c: make show_boot_progress __weak
8
9 This not only looks a bit better it also prevents a
10 warning with W=1 (no previous prototype).
11
12 Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
13 Acked-by: Simon Glass <sjg@chromium.org>
14 ---
15
16 --- a/common/main.c
17 +++ b/common/main.c
18 @@ -27,8 +27,7 @@ DECLARE_GLOBAL_DATA_PTR;
19 /*
20 * Board-specific Platform code can reimplement show_boot_progress () if needed
21 */
22 -void inline __show_boot_progress (int val) {}
23 -void show_boot_progress (int val) __attribute__((weak, alias("__show_boot_progress")));
24 +__weak void show_boot_progress(int val) {}
25
26 #define MAX_DELAY_STOP_STR 32
27