summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Hofstee <jeroen@myspectrum.nl>2014-06-26 22:18:31 +0400
committerDavid du Colombier <0intro@gmail.com>2015-09-11 23:43:05 +0300
commit425a81741d062f4c7e04f7430b2e8f7b23e588d0 (patch)
treea4e29f2fba6fa83d61a18096c251afccfd55e39e
parent2e320c155f936519b52fee05ff152ac949ce3bb8 (diff)
downloadCI20_u-boot-425a81741d062f4c7e04f7430b2e8f7b23e588d0.tar.xz
common: main.c: make show_boot_progress __weak
This not only looks a bit better it also prevents a warning with W=1 (no previous prototype). Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl> Acked-by: Simon Glass <sjg@chromium.org>
-rw-r--r--common/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/main.c b/common/main.c
index ae37fee46..2e56573b6 100644
--- a/common/main.c
+++ b/common/main.c
@@ -27,8 +27,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")));
+__weak void show_boot_progress(int val) {}
#define MAX_DELAY_STOP_STR 32