Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

c6x: kernel: setup: Add screen_info global variable

Or can not pass building with allmodconfig:

LD init/built-in.o
drivers/built-in.o: In function `vgacon_switch':
vgacon.c:(.text+0x47f8): undefined reference to `screen_info'
vgacon.c:(.text+0x4810): undefined reference to `screen_info'
drivers/built-in.o: In function `vgacon_resize':
vgacon.c:(.text+0x4ac8): undefined reference to `screen_info'
vgacon.c:(.text+0x4acc): undefined reference to `screen_info'
drivers/built-in.o: In function `vgacon_save_screen':
vgacon.c:(.text+0x4cc8): undefined reference to `screen_info'
drivers/built-in.o:vgacon.c:(.text+0x4cd0): more undefined references to `screen_info' follow

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: Mark Salter <msalter@redhat.com>

authored by

Chen Gang and committed by
Mark Salter
d0f73520 df93ab75

+3
+3
arch/c6x/kernel/setup.c
··· 27 27 #include <linux/fs.h> 28 28 #include <linux/of.h> 29 29 #include <linux/console.h> 30 + #include <linux/screen_info.h> 30 31 31 32 #include <asm/sections.h> 32 33 #include <asm/div64.h> ··· 38 37 #include <asm/special_insns.h> 39 38 40 39 static const char *c6x_soc_name; 40 + 41 + struct screen_info screen_info; 41 42 42 43 int c6x_num_cores; 43 44 EXPORT_SYMBOL_GPL(c6x_num_cores);