common: main.c: make show_boot_progress __weak
authorJeroen Hofstee <jeroen@myspectrum.nl>
Thu, 26 Jun 2014 18:18:31 +0000 (20:18 +0200)
committerJae-young Hwang <j-zero.hwang@samsung.com>
Thu, 14 Jan 2016 04:28:47 +0000 (13:28 +0900)
This not only looks a bit better it also prevents a
warning with W=1 (no previous prototype).

Change-Id: I76061ab498572895bf3b864add2c18c4bcd9585c
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Acked-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Jae-young Hwang <j-zero.hwang@samsung.com>
common/main.c

index b03b4a3603bc865b28343d86adecd59018965c36..bb4882d60df0ec0e61e8b6076cd6cbeaf8ba1f1f 100644 (file)
@@ -50,8 +50,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) {}
 
 #if defined(CONFIG_UPDATE_TFTP)
 int update_tftp (ulong addr);