summaryrefslogtreecommitdiffstats
path: root/common/main.c
diff options
context:
space:
mode:
authorJeroen Hofstee <jeroen@myspectrum.nl>2014-06-26 20:18:31 +0200
committerTom Rini <trini@ti.com>2014-07-18 17:53:23 -0400
commit3422299dc28fa8257677d03cc1253e3c9bf17e9f (patch)
tree6e2208402b68494cc2619bfd9a7db0083db4e336 /common/main.c
parent2c34f3f547ba2bdaac44bb9582df032f3b6c4f6e (diff)
downloadblackbird-obmc-uboot-3422299dc28fa8257677d03cc1253e3c9bf17e9f.tar.gz
blackbird-obmc-uboot-3422299dc28fa8257677d03cc1253e3c9bf17e9f.zip
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>
Diffstat (limited to 'common/main.c')
-rw-r--r--common/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/main.c b/common/main.c
index 32618f139f..2979fbed63 100644
--- a/common/main.c
+++ b/common/main.c
@@ -17,8 +17,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) {}
static void modem_init(void)
{
OpenPOWER on IntegriCloud