From: Jeroen Hofstee Date: Thu, 26 Jun 2014 18:18:31 +0000 (+0200) Subject: common: main.c: make show_boot_progress __weak X-Git-Tag: v2014.10-rc1~130 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3422299dc28fa8257677d03cc1253e3c9bf17e9f;p=oweals%2Fu-boot.git 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 Acked-by: Simon Glass --- 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) {