lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <541552B8.8020807@gmail.com>
Date:	Sun, 14 Sep 2014 16:32:56 +0800
From:	Chen Gang <gang.chen.5i5j@...il.com>
To:	Michal Simek <monstr@...str.eu>, rob.herring@...xeda.com,
	Geert Uytterhoeven <geert@...ux-m68k.org>, pebolle@...cali.nl
CC:	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: [PATCH] arch/microblaze/kernel/setup.c: Add default 'screen_info"
 for fixing compiling break

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ