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-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 21 May 2014 16:01:06 +0800 (CST)
From:	管雪涛 <gxt@....edu.cn>
To:	Chen Gang <gang.chen.5i5j@...il.com>
Cc:	Guan Xuetao <gxt@...c.pku.edu.cn>, linux-kernel@...r.kernel.org
Subject: 回复: [PATCH] arch/unicore32/kernel/setup.c: add generic 'screen_info' to avoid compiling failure


----- Chen Gang <gang.chen.5i5j@...il.com> 写道:
> Add generic 'screen_info' just like another architectures have done
> (e.g. tile, sh, score, ia64, hexagon, and cris).
> 
> The related error (with allmodconfig under unicore32):
> 
>     LD      init/built-in.o
>   drivers/built-in.o: In function `vgacon_save_screen':
>   powercap_sys.c:(.text+0x21788): undefined reference to `screen_info'
>   drivers/built-in.o: In function `vgacon_resize':
>   powercap_sys.c:(.text+0x21b54): undefined reference to `screen_info'
>   drivers/built-in.o: In function `vgacon_switch':
>   powercap_sys.c:(.text+0x21cb4): undefined reference to `screen_info'
>   drivers/built-in.o: In function `vgacon_init':
>   powercap_sys.c:(.text+0x2296c): undefined reference to `screen_info'
>   drivers/built-in.o: In function `vgacon_startup':
>   powercap_sys.c:(.text+0x22e80): undefined reference to `screen_info'
> 
> 
> Signed-off-by: Chen Gang <gang.chen.5i5j@...il.com>
> ---
>  arch/unicore32/kernel/setup.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/arch/unicore32/kernel/setup.c b/arch/unicore32/kernel/setup.c
> index 87adbf5..94bc4bc 100644
> --- a/arch/unicore32/kernel/setup.c
> +++ b/arch/unicore32/kernel/setup.c
> @@ -53,6 +53,8 @@ struct stack {
>  
>  static struct stack stacks[NR_CPUS];
>  
> +struct screen_info screen_info;
> +

could be as following if it's only used by vga console:

+#ifdef CONFIG_VGA_CONSOLE
+struct screen_info screen_info;
+#endif

>  char elf_platform[ELF_PLATFORM_SIZE];
>  EXPORT_SYMBOL(elf_platform);
>  
> -- 
> 1.9.2.459.g68773ac
--
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