From: Jeroen Hofstee Date: Thu, 26 Jun 2014 17:53:16 +0000 (+0200) Subject: common:splash: use __weak X-Git-Tag: v2014.10-rc1~132 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cc64b92cdee921536a00e66568fd36cff3d35420;p=oweals%2Fu-boot.git common:splash: use __weak This not only looks a bit better it also prevents a warning with W=1 (no previous prototype). cc: agust@denx.de Signed-off-by: Jeroen Hofstee --- diff --git a/common/splash.c b/common/splash.c index 18885f1bfe..144fb10ddd 100644 --- a/common/splash.c +++ b/common/splash.c @@ -23,15 +23,11 @@ #include #include -int __splash_screen_prepare(void) +__weak int splash_screen_prepare(void) { return 0; } -int splash_screen_prepare(void) - __attribute__ ((weak, alias("__splash_screen_prepare"))); - - #ifdef CONFIG_SPLASH_SCREEN_ALIGN void splash_get_pos(int *x, int *y) {