]> code.ossystems Code Review - bsp/u-boot.git/commit
arm: mxs: make inline function compatible for GCC 5
authorJörg Krause <joerg.krause@embedded.rocks>
Wed, 5 Aug 2015 15:06:38 +0000 (17:06 +0200)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 5 Aug 2015 16:26:45 +0000 (13:26 -0300)
commit87c4294f606a992e01dea8f2a1377edf3ad32317
treea4ceaba15d80f72ee8a1d0611991df36d779a8af
parenta3c103e21f3b74ceb10dad89c424b54bb03e59e9
arm: mxs: make inline function compatible for GCC 5

GCC 5 uses C99 inline semantics. To generate external visibility in C99 for
the lowlevel_init() function must be declared with extern inline [1].

The GNU89 inline semantic is the same as C99 extern inline.

Use the __GNUC_STDC_INLINE__ macro to detect if C99 inline semantic will be
used by GCC.

Fixes the build error "undefined reference to `lowlevel_init'" for mx28 based
targets.

[1] "Different semantics for inline functions"
https://gcc.gnu.org/gcc-5/porting_to.html

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
arch/arm/cpu/arm926ejs/mxs/mxs.c