Skip to contentSkip to conversation

arch/unicore32/kernel/setup.c: add generic 'screen_info' to avoid compiling failure

PATCH In review Chen Gang 2 participants 2 messages May 21, 2014

lore
Share & tools
lore

Chen Gang

author
#0 lore raw

PATCH v2 1/1 arch/unicore32/kernel/setup.c: add generic 'screen_info' to avoid compiling failure

Add generic 'screen_info' just like another architectures have done (e.g. tile, sh, score, ia64, hexagon, and cris).

The related error (with allmodconfig under unicore32):

LD init/built-in.o
drivers/built-in.o: In function `vgacon_save_screen':
powercap_sys.c:(.text+0x21788): undefined reference to screen_info' drivers/built-in.o: In function vgacon_resize':
powercap_sys.c:(.text+0x21b54): undefined reference to screen_info' drivers/built-in.o: In function vgacon_switch':
powercap_sys.c:(.text+0x21cb4): undefined reference to screen_info' drivers/built-in.o: In function vgacon_init':
powercap_sys.c:(.text+0x2296c): undefined reference to screen_info' drivers/built-in.o: In function vgacon_startup':
powercap_sys.c:(.text+0x22e80): undefined reference to `screen_info'

---
 arch/unicore32/kernel/setup.c | 4 ++++
 1 file changed, 4 insertions(+)
arch/unicore32/kernel/setup.c +4 -0
index 87adbf5..3fa317f 100644
@@ -53,6 +53,10 @@ struct stack {
 
 static struct stack stacks[NR_CPUS];
 
+#ifdef CONFIG_VGA_CONSOLE
+struct screen_info screen_info;
+#endif
+
 char elf_platform[ELF_PLATFORM_SIZE];
 EXPORT_SYMBOL(elf_platform);
 
Signature · 1 line
1.9.2.459.g68773ac
Acked-by Xuetao Guan on v2 1/1
#1 lore raw
Quoted 40 lines · ----- Chen Gang

Add generic 'screen_info' just like another architectures have done (e.g. tile, sh, score, ia64, hexagon, and cris).

The related error (with allmodconfig under unicore32):

LD init/built-in.o
drivers/built-in.o: In function `vgacon_save_screen':
powercap_sys.c:(.text+0x21788): undefined reference to screen_info' drivers/built-in.o: In function vgacon_resize':
powercap_sys.c:(.text+0x21b54): undefined reference to screen_info' drivers/built-in.o: In function vgacon_switch':
powercap_sys.c:(.text+0x21cb4): undefined reference to screen_info' drivers/built-in.o: In function vgacon_init':
powercap_sys.c:(.text+0x2296c): undefined reference to screen_info' drivers/built-in.o: In function vgacon_startup':
powercap_sys.c:(.text+0x22e80): undefined reference to `screen_info'

---
 arch/unicore32/kernel/setup.c | 4 ++++
 1 file changed, 4 insertions(+)
arch/unicore32/kernel/setup.c +4 -0
index 87adbf5..3fa317f 100644
@@ -53,6 +53,10 @@ struct stack {
 
 static struct stack stacks[NR_CPUS];
 
+#ifdef CONFIG_VGA_CONSOLE
+struct screen_info screen_info;
+#endif
+
 char elf_platform[ELF_PLATFORM_SIZE];
 EXPORT_SYMBOL(elf_platform);
 
Signature · 1 line
1.9.2.459.g68773ac