]> Git Repo - J-u-boot.git/commitdiff
common: main.c: make show_boot_progress __weak
authorJeroen Hofstee <[email protected]>
Thu, 26 Jun 2014 18:18:31 +0000 (20:18 +0200)
committerTom Rini <[email protected]>
Fri, 18 Jul 2014 21:53:23 +0000 (17:53 -0400)
This not only looks a bit better it also prevents a
warning with W=1 (no previous prototype).

Signed-off-by: Jeroen Hofstee <[email protected]>
Acked-by: Simon Glass <[email protected]>
common/main.c

index 32618f139f2e601ff804e3057d4a185f151694f5..2979fbed630ca22d7ae9a208c18a06ab1a3e21f0 100644 (file)
@@ -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)
 {
This page took 0.028632 seconds and 4 git commands to generate.