Re: [PATCH v2 1/4] vt: preserve unicode values corresponding to screen characters

From: Nicolas Pitre
Date: Sun Jun 17 2018 - 19:18:12 EST


On Sun, 17 Jun 2018, valdis.kletnieks@xxxxxx wrote:

> On Sun, 17 Jun 2018 15:07:03 -0400, Nicolas Pitre said:
>
> > diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c
> > index 1eb1a376a0..7b636638b3 100644
> > --- a/drivers/tty/vt/vt.c
> > +++ b/drivers/tty/vt/vt.c
> > @@ -317,6 +317,171 @@ void schedule_console_callback(void)
> > schedule_work(&console_work);
> > }
> >
> > +/*
> > + * Code to manage unicode-based screen buffers
> > + */
> > +
> > +#ifdef NO_VC_UNI_SCREEN
>
> This preprocessor variable seems to be dangling in the breeze, with
> no way for it to get set? As a result, we pick up the #else define by
> default.

That's actually what's intended here.

If vc_screen.c ever becomes configurable then this could be used to
compile out this code. Or if someone wants to disable it for some
debugging reasons. For now it is just a self-explanatory placeholder
with very little chance of being set by mistake for any other purpose.


Nicolas