linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arch/microblaze/kernel/setup.c: Add default 'screen_info" for fixing compiling break
@ 2014-09-14  8:32 Chen Gang
  2014-09-14  8:45 ` Geert Uytterhoeven
  0 siblings, 1 reply; 10+ messages in thread
From: Chen Gang @ 2014-09-14  8:32 UTC (permalink / raw)
  To: Michal Simek, rob.herring, Geert Uytterhoeven, pebolle
  Cc: linux-kernel@vger.kernel.org

Add default one just like other architectures have done (e.g. cris,
score, sh ...), the related error with allmodconfig:

    LD      init/built-in.o
  drivers/built-in.o: In function `vgacon_save_screen':
  drivers/video/console/.tmp_vgacon.o:(.text+0x834d0): undefined reference to `screen_info'
  drivers/video/console/.tmp_vgacon.o:(.text+0x834ec): undefined reference to `screen_info'
  drivers/built-in.o: In function `vgacon_resize':
  drivers/video/console/.tmp_vgacon.o:(.text+0x83cdc): undefined reference to `screen_info'
  drivers/video/console/.tmp_vgacon.o:(.text+0x83d38): undefined reference to `screen_info'
  drivers/built-in.o: In function `vgacon_switch':
  drivers/video/console/.tmp_vgacon.o:(.text+0x83f50): undefined reference to `screen_info'
  drivers/built-in.o:drivers/video/console/.tmp_vgacon.o:(.text+0x8407c): more undefined references to `screen_info' follow
  make: *** [vmlinux] Error 1

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
---
 arch/microblaze/kernel/setup.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/microblaze/kernel/setup.c b/arch/microblaze/kernel/setup.c
index ab5b488..8756d61 100644
--- a/arch/microblaze/kernel/setup.c
+++ b/arch/microblaze/kernel/setup.c
@@ -18,6 +18,7 @@
 #include <linux/console.h>
 #include <linux/debugfs.h>
 #include <linux/of_fdt.h>
+#include <linux/screen_info.h>
 
 #include <asm/setup.h>
 #include <asm/sections.h>
@@ -42,6 +43,8 @@ DEFINE_PER_CPU(unsigned int, ENTRY_SP);	/* Saved SP on kernel entry */
 DEFINE_PER_CPU(unsigned int, R11_SAVE);	/* Temp variable for entry */
 DEFINE_PER_CPU(unsigned int, CURRENT_SAVE);	/* Saved current pointer */
 
+struct screen_info screen_info;
+
 unsigned int boot_cpuid;
 /*
  * Placed cmd_line to .data section because can be initialized from
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-09-20  4:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-14  8:32 [PATCH] arch/microblaze/kernel/setup.c: Add default 'screen_info" for fixing compiling break Chen Gang
2014-09-14  8:45 ` Geert Uytterhoeven
2014-09-14  9:02   ` Chen Gang
2014-09-16  9:23     ` Michal Simek
2014-09-16 10:04       ` Geert Uytterhoeven
2014-09-16 10:59         ` Michal Simek
2014-09-16 14:34           ` Chen Gang
2014-09-15  8:50   ` Jesper Nilsson
2014-09-15 11:10     ` Chen Gang
2014-09-20  4:08       ` Chen Gang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).