From: "Jan Beulich" Subject: [PATCH] linux-2.6.18/xencons: drop pre-2.6 relics Date: Tue, 29 Jan 2013 15:21:45 +0000 Message-ID: <5107F71902000078000BA702@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartCEFE9519.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__PartCEFE9519.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Allocating/reserving the termios pointer arrays may have been needed in 2.4.x or 2.5.x, but even 2.6.0 didn't require this anymore. Signed-off-by: Jan Beulich --- a/drivers/xen/console/console.c +++ b/drivers/xen/console/console.c @@ -350,8 +350,6 @@ void __init dom0_init_screen_info(const=20 #define DUMMY_TTY(_tty) ((xc_mode =3D=3D XC_TTY) && \ ((_tty)->index !=3D (xc_num - 1))) =20 -static struct termios *xencons_termios[MAX_NR_CONSOLES]; -static struct termios *xencons_termios_locked[MAX_NR_CONSOLES]; static struct tty_struct *xencons_tty; static int xencons_priv_irq; static char x_char; @@ -686,8 +684,6 @@ static int __init xencons_init(void) DRV(xencons_driver)->flags =3D TTY_DRIVER_REAL_RAW | TTY_DRIVER_RESET_TERMIOS; - DRV(xencons_driver)->termios =3D xencons_termios; - DRV(xencons_driver)->termios_locked =3D xencons_termios_locked; =20 switch (xc_mode) { case XC_XVC: --=__PartCEFE9519.0__= Content-Type: text/plain; name="xen-console-drop-termios.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="xen-console-drop-termios.patch" xencons: drop pre-2.6 relics=0A=0AAllocating/reserving the termios pointer = arrays may have been needed=0Ain 2.4.x or 2.5.x, but even 2.6.0 didn't = require this anymore.=0A=0ASigned-off-by: Jan Beulich = =0A=0A--- a/drivers/xen/console/console.c=0A+++ b/drivers/xen/console/conso= le.c=0A@@ -350,8 +350,6 @@ void __init dom0_init_screen_info(const =0A = #define DUMMY_TTY(_tty) ((xc_mode =3D=3D XC_TTY) && \=0A = ((_tty)->index !=3D (xc_num - 1)))=0A =0A-static struct termios = *xencons_termios[MAX_NR_CONSOLES];=0A-static struct termios *xencons_termio= s_locked[MAX_NR_CONSOLES];=0A static struct tty_struct *xencons_tty;=0A = static int xencons_priv_irq;=0A static char x_char;=0A@@ -686,8 +684,6 @@ = static int __init xencons_init(void)=0A DRV(xencons_driver)->flags = =3D=0A TTY_DRIVER_REAL_RAW |=0A = TTY_DRIVER_RESET_TERMIOS;=0A- DRV(xencons_driver)->termios =3D = xencons_termios;=0A- DRV(xencons_driver)->termios_locked =3D xencons_te= rmios_locked;=0A =0A switch (xc_mode) {=0A case XC_XVC:=0A --=__PartCEFE9519.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --=__PartCEFE9519.0__=--