[U-Boot] [PATCH 2/2] blackfin: fix a warning in arch/blackfin/cpu/cpu.c

Sonic Zhang sonic.adi at gmail.com
Tue Oct 22 09:21:52 CEST 2013


Applied.

Thanks.

Sonic

On Mon, Oct 21, 2013 at 9:14 AM, Masahiro Yamada
<yamada.m at jp.panasonic.com> wrote:
> This commit fixes:
>     cpu.c:107: warning: ‘noreturn’ function does return
>
> Signed-off-by: Masahiro Yamada <yamada.m at jp.panasonic.com>
> Cc: Sonic Zhang <sonic.zhang at analog.com>
> ---
>  arch/blackfin/cpu/cpu.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/arch/blackfin/cpu/cpu.c b/arch/blackfin/cpu/cpu.c
> index 218f57e..2409c30 100644
> --- a/arch/blackfin/cpu/cpu.c
> +++ b/arch/blackfin/cpu/cpu.c
> @@ -104,6 +104,9 @@ void cpu_init_f(ulong bootflag, ulong loaded_from_ldr)
>
>         serial_early_puts("Board init flash\n");
>         board_init_f(bootflag);
> +
> +       /* should not be reached */
> +       while (1);
>  }
>
>  int exception_init(void)
> --
> 1.8.1.2
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot


More information about the U-Boot mailing list