From: Måns Rullgård Date: Tue, 28 Jul 2015 13:39:49 +0000 (+0100) Subject: imx28: Fix issue with GCC 5.x X-Git-Tag: v2015.10-rc2~92 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e86c95305912c77bacdae683a88edb20012cc271;p=u-boot imx28: Fix issue with GCC 5.x The semantics for non-static functions declared inline have changed in gcc5, causing the empty functions not to be emitted as an external symbol. Since lowlevel_init() is only referenced from start.S, it should not be declared inline at all. Reported-by: Otavio Salvador Tested-by: Otavio Salvador [trini: Reword commit message] Signed-off-by: Tom Rini --- diff --git a/arch/arm/cpu/arm926ejs/mxs/mxs.c b/arch/arm/cpu/arm926ejs/mxs/mxs.c index ef130aea42..b1d8721213 100644 --- a/arch/arm/cpu/arm926ejs/mxs/mxs.c +++ b/arch/arm/cpu/arm926ejs/mxs/mxs.c @@ -24,7 +24,7 @@ DECLARE_GLOBAL_DATA_PTR; /* Lowlevel init isn't used on i.MX28, so just have a dummy here */ -inline void lowlevel_init(void) {} +void lowlevel_init(void) {} void reset_cpu(ulong ignored) __attribute__((noreturn));