diff options
author | Jeroen Hofstee <jeroen@myspectrum.nl> | 2014-06-26 22:18:31 +0400 |
---|---|---|
committer | David du Colombier <0intro@gmail.com> | 2015-09-11 23:43:05 +0300 |
commit | 425a81741d062f4c7e04f7430b2e8f7b23e588d0 (patch) | |
tree | a4e29f2fba6fa83d61a18096c251afccfd55e39e | |
parent | 2e320c155f936519b52fee05ff152ac949ce3bb8 (diff) | |
download | CI20_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.c | 3 |
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 |