From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753564AbbBSAaA (ORCPT ); Wed, 18 Feb 2015 19:30:00 -0500 Received: from terminus.zytor.com ([198.137.202.10]:47709 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753091AbbBSA37 (ORCPT ); Wed, 18 Feb 2015 19:29:59 -0500 Date: Wed, 18 Feb 2015 16:29:46 -0800 From: tip-bot for Alexander Kuleshov Message-ID: Cc: linux-kernel@vger.kernel.org, kuleshovmail@gmail.com, hpa@zytor.com, mingo@kernel.org, mj@ucw.cz, tglx@linutronix.de Reply-To: linux-kernel@vger.kernel.org, kuleshovmail@gmail.com, hpa@zytor.com, mingo@kernel.org, mj@ucw.cz, tglx@linutronix.de In-Reply-To: <1422123092-28750-1-git-send-email-kuleshovmail@gmail.com> References: <1422123092-28750-1-git-send-email-kuleshovmail@gmail.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/boot] x86/boot/video: Move the 'video_segment' variable to video.c Git-Commit-ID: 79287cf8778df21e5ad6c3ac01615e02cf9dbae6 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 79287cf8778df21e5ad6c3ac01615e02cf9dbae6 Gitweb: http://git.kernel.org/tip/79287cf8778df21e5ad6c3ac01615e02cf9dbae6 Author: Alexander Kuleshov AuthorDate: Sun, 25 Jan 2015 00:11:32 +0600 Committer: Ingo Molnar CommitDate: Thu, 19 Feb 2015 00:25:05 +0100 x86/boot/video: Move the 'video_segment' variable to video.c video.c is the only real user of the 'video_segment' variable, so move it to video.c and make it static. Signed-off-by: Alexander Kuleshov Cc: H. Peter Anvin Cc: Martin Mares Link: http://lkml.kernel.org/r/1422123092-28750-1-git-send-email-kuleshovmail@gmail.com Signed-off-by: Ingo Molnar --- arch/x86/boot/video-mode.c | 4 +--- arch/x86/boot/video.c | 2 ++ arch/x86/boot/video.h | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/x86/boot/video-mode.c b/arch/x86/boot/video-mode.c index 748e8d0..aa8a96b 100644 --- a/arch/x86/boot/video-mode.c +++ b/arch/x86/boot/video-mode.c @@ -22,10 +22,8 @@ /* * Common variables */ -int adapter; /* 0=CGA/MDA/HGC, 1=EGA, 2=VGA+ */ -u16 video_segment; +int adapter; /* 0=CGA/MDA/HGC, 1=EGA, 2=VGA+ */ int force_x, force_y; /* Don't query the BIOS for cols/rows */ - int do_restore; /* Screen contents changed during mode flip */ int graphic_mode; /* Graphic mode with linear frame buffer */ diff --git a/arch/x86/boot/video.c b/arch/x86/boot/video.c index 43eda28..05111bb 100644 --- a/arch/x86/boot/video.c +++ b/arch/x86/boot/video.c @@ -17,6 +17,8 @@ #include "video.h" #include "vesa.h" +static u16 video_segment; + static void store_cursor_position(void) { struct biosregs ireg, oreg; diff --git a/arch/x86/boot/video.h b/arch/x86/boot/video.h index 0bb2549..b54e032 100644 --- a/arch/x86/boot/video.h +++ b/arch/x86/boot/video.h @@ -91,7 +91,6 @@ int mode_defined(u16 mode); /* video.c */ #define ADAPTER_VGA 2 extern int adapter; -extern u16 video_segment; extern int force_x, force_y; /* Don't query the BIOS for cols/rows */ extern int do_restore; /* Restore screen contents */ extern int graphic_mode; /* Graphics mode with linear frame buffer */