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

Masahiro Yamada yamada.m at jp.panasonic.com
Mon Oct 21 03:14:05 CEST 2013


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



More information about the U-Boot mailing list