From: Ley Foon Tan Date: Wed, 7 Dec 2016 07:44:19 +0000 (+0800) Subject: nios2: add screen_info X-Git-Tag: v4.10-rc1~74^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=744606c76c4a3a73eb34d21f265013426426c4b5;p=thirdparty%2Flinux.git nios2: add screen_info Fix build error when enable VGA console. drivers/video/console/vgacon.c:586: undefined reference to `screen_info' Signed-off-by: Ley Foon Tan --- diff --git a/arch/nios2/kernel/setup.c b/arch/nios2/kernel/setup.c index a4ff86d58d5cd..a3fa80d1aacc2 100644 --- a/arch/nios2/kernel/setup.c +++ b/arch/nios2/kernel/setup.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include @@ -36,6 +37,10 @@ static struct pt_regs fake_regs = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; +#ifdef CONFIG_VT +struct screen_info screen_info; +#endif + /* Copy a short hook instruction sequence to the exception address */ static inline void copy_exception_handler(unsigned int addr) {