[PATCH] arch/microblaze/kernel/setup.c: Add default 'screen_info" for fixing compiling break

From: Chen Gang
Date: Sun Sep 14 2014 - 04:33:01 EST


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@xxxxxxxxx>
---
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/