Skip to contentSkip to conversation

openrisc: Fix build errors

PATCH In review Bin Meng 2 participants 2 messages Jan 25, 2016 Openrisc architecture

lore
Share & tools
lore

Bin Meng

author
#0 lore raw

PATCH 1/1 openrisc: Fix build errors

With kernel.org toolchain, it reports:

CC arch/openrisc/lib/board.o
arch/openrisc/lib/board.c:56:2: error: 'console_init_f' undeclared here (not in a function) arch/openrisc/lib/board.c: In function 'board_init':
arch/openrisc/lib/board.c:120:2: warning: implicit declaration of function 'console_init_r' make[1]: *** [arch/openrisc/lib/board.o] Error 1
make: *** [arch/openrisc/lib] Error 2

Include console.h will fix this.

---

 arch/openrisc/lib/board.c | 1 +
 1 file changed, 1 insertion(+)
arch/openrisc/lib/board.c +1 -0
index c26cc8f..b7fbd2f 100644
@@ -13,6 +13,7 @@
  */
 
 #include <common.h>
+#include <console.h>
 #include <stdio_dev.h>
 #include <watchdog.h>
 #include <malloc.h>
Signature · 1 line
1.8.2.1
#1 lore raw
Quoted 9 lines · Bin Meng

With kernel.org toolchain, it reports:

CC arch/openrisc/lib/board.o
arch/openrisc/lib/board.c:56:2: error: 'console_init_f' undeclared here (not in a function) arch/openrisc/lib/board.c: In function 'board_init':
arch/openrisc/lib/board.c:120:2: warning: implicit declaration of function 'console_init_r' make[1]: *** [arch/openrisc/lib/board.o] Error 1
make: *** [arch/openrisc/lib] Error 2

Quoted 3 lines

Include console.h will fix this.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160125/93ddcc90/attachment.sig>