[U-Boot] GCC 5.2 issue on imx28

Otavio Salvador otavio.salvador at ossystems.com.br
Tue Jul 28 19:16:58 CEST 2015


On Tue, Jul 28, 2015 at 10:39 AM, Måns Rullgård <mans at mansr.com> wrote:
...
> Since that function is only referenced from start.S, it should not be
> declared inline at all.  This patch should thus fix your problem:
>
> diff --git a/arch/arm/cpu/arm926ejs/mxs/mxs.c b/arch/arm/cpu/arm926ejs/mxs/mxs.c
> index ef130ae..b1d8721 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));

Works like a charm.

Tested-by: Otavio Salvador <otavio at ossystems.com.br>

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


More information about the U-Boot mailing list