Skip to contentSkip to conversation

arch: c6x: kernel: include "linux/console.h" when 'VT' and 'DUMMY_CONSOLE' enabled.

PATCH In review Chen Gang 2 participants 3 messages Jun 25, 2013 Generic include/asm header files

lore
Share & tools
lore

Chen Gang

author
#0 lore raw

PATCH 1/1 arch: c6x: kernel: include "linux/console.h" when 'VT' and 'DUMMY_CONSOLE' enabled.

Need include "linux/console.h" when 'VT' and 'DUMMY_CONSOLE' enabled (e.g allmodconfig).

The related error:
arch/c6x/kernel/setup.c: In function ‘setup_arch’:
arch/c6x/kernel/setup.c:442:2: error: ‘conswitchp’ undeclared (first use in this function) arch/c6x/kernel/setup.c:442:2: note: each undeclared identifier is reported only once for each function it appears in arch/c6x/kernel/setup.c:442:16: error: ‘dummy_con’ undeclared (first use in this function)

---
 arch/c6x/kernel/setup.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
arch/c6x/kernel/setup.c +3 -0
index f4e72bd..1411141 100644
@@ -26,6 +26,9 @@
 #include <linux/cpu.h>
 #include <linux/fs.h>
 #include <linux/of.h>
+#if defined(CONFIG_VT) && defined(CONFIG_DUMMY_CONSOLE)
+#include <linux/console.h>
+#endif
 
 
 #include <asm/sections.h>
Signature · 1 line
1.7.7.6
#1 lore raw
Quoted 8 lines · Chen Gang

Need include "linux/console.h" when 'VT' and 'DUMMY_CONSOLE' enabled (e.g allmodconfig).

The related error:
arch/c6x/kernel/setup.c: In function ‘setup_arch’:
arch/c6x/kernel/setup.c:442:2: error: ‘conswitchp’ undeclared (first use in this function) arch/c6x/kernel/setup.c:442:2: note: each undeclared identifier is reported only once for each function it appears in arch/c6x/kernel/setup.c:442:16: error: ‘dummy_con’ undeclared (first use in this function)

Ah, so you managed to obtain a c6x toolchain. There's none at
https://www.kernel.org/pub/tools/crosstool/files/bin/x86_64/ yet :-(

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

author
#2 lore raw
Quoted 11 lines · Geert Uytterhoeven
Quoted 8 lines · Chen Gang
Quoted 8 lines

Need include "linux/console.h" when 'VT' and 'DUMMY_CONSOLE' enabled (e.g allmodconfig).

The related error:
arch/c6x/kernel/setup.c: In function ‘setup_arch’:
arch/c6x/kernel/setup.c:442:2: error: ‘conswitchp’ undeclared (first use in this function) arch/c6x/kernel/setup.c:442:2: note: each undeclared identifier is reported only once for each function it appears in arch/c6x/kernel/setup.c:442:16: error: ‘dummy_con’ undeclared (first use in this function)

Ah, so you managed to obtain a c6x toolchain. There's none at
https://www.kernel.org/pub/tools/crosstool/files/bin/x86_64/ yet :-(

Hmm..., I use:
[root@dhcp122 linux-next]# rpm -qf /usr/bin/c6x-linux-gnu-gcc gcc-c6x-linux-gnu-4.7.1-0.1.20120606.fc17.x86_64

When fix the 3 compiling issues, it almost can pass compiling: during compiled to fs subsystem, I stopped compilation manually.

Thanks.

Signature · 3 lines
Chen Gang

Asianux Corporation