4701ab1d24d420f0dddeab058cf598c6d460796f
[openwrt/staging/lynxis/omap.git] / package / boot / uboot-lantiq / patches / 0046-no_weak_alias.patch
1 From 3422299dc28fa8257677d03cc1253e3c9bf17e9f Mon Sep 17 00:00:00 2001
2 From: Jeroen Hofstee <jeroen@myspectrum.nl>
3 Date: Thu, 26 Jun 2014 20:18:31 +0200
4 Subject: [PATCH] common: main.c: make show_boot_progress __weak
5
6 This not only looks a bit better it also prevents a
7 warning with W=1 (no previous prototype).
8
9 Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
10 Acked-by: Simon Glass <sjg@chromium.org>
11 ---
12 common/main.c | 3 +--
13 1 file changed, 1 insertion(+), 2 deletions(-)
14
15 diff --git a/common/main.c b/common/main.c
16 index 32618f1..2979fbe 100644
17 --- a/common/main.c
18 +++ b/common/main.c
19 @@ -17,8 +17,7 @@ DECLARE_GLOBAL_DATA_PTR;
20 /*
21 * Board-specific Platform code can reimplement show_boot_progress () if needed
22 */
23 -void inline __show_boot_progress (int val) {}
24 -void show_boot_progress (int val) __attribute__((weak, alias("__show_boot_progress")));
25 +__weak void show_boot_progress(int val) {}
26
27 static void modem_init(void)
28 {