]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
imx28: Fix issue with GCC 5.x
authorMåns Rullgård <mans@mansr.com>
Tue, 28 Jul 2015 13:39:49 +0000 (14:39 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 08:19:12 +0000 (10:19 +0200)
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 <otavio@ossystems.com.br>
Tested-by: Otavio Salvador <otavio@ossystems.com.br>
[trini: Reword commit message]
Signed-off-by: Tom Rini <trini@konsulko.com>
arch/arm/cpu/arm926ejs/mxs/mxs.c

index b451c66ee41d14714de0e30207b3451207d2ac3d..cc4122dc0da35b380cc2cdfaa2717ca79f03fa0b 100644 (file)
@@ -24,7 +24,7 @@
 DECLARE_GLOBAL_DATA_PTR;
 
 /* Lowlevel init isn't used on i.MX28, so just have a dummy here */
 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 |            \
 
 #define BOOT_CAUSE_MASK                (RTC_PERSISTENT0_EXTERNAL_RESET |       \
                                RTC_PERSISTENT0_ALARM_WAKE |            \