linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chen Gang <gang.chen.5i5j@gmail.com>
To: Michal Simek <monstr@monstr.eu>,
	rob.herring@calxeda.com,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	pebolle@tiscali.nl
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: [PATCH] arch/microblaze/kernel/setup.c: Add default 'screen_info" for fixing compiling break
Date: Sun, 14 Sep 2014 16:32:56 +0800	[thread overview]
Message-ID: <541552B8.8020807@gmail.com> (raw)

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

             reply	other threads:[~2014-09-14  8:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-14  8:32 Chen Gang [this message]
2014-09-14  8:45 ` [PATCH] arch/microblaze/kernel/setup.c: Add default 'screen_info" for fixing compiling break 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=541552B8.8020807@gmail.com \
    --to=gang.chen.5i5j@gmail.com \
    --cc=geert@linux-m68k.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=monstr@monstr.eu \
    --cc=pebolle@tiscali.nl \
    --cc=rob.herring@calxeda.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).