From d1b8c7a8b72fefa7d67dc42fbd20a9de147d8907 Mon Sep 17 00:00:00 2001 From: =?utf8?q?M=C3=A5ns=20Rullg=C3=A5rd?= Date: Tue, 28 Jul 2015 14:39:49 +0100 Subject: [PATCH] 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 --- arch/arm/cpu/arm926ejs/mxs/mxs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/arm926ejs/mxs/mxs.c b/arch/arm/cpu/arm926ejs/mxs/mxs.c index b451c66ee4..cc4122dc0d 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) {} #define BOOT_CAUSE_MASK (RTC_PERSISTENT0_EXTERNAL_RESET | \ RTC_PERSISTENT0_ALARM_WAKE | \ -- 2.39.2