| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | Re: [PATCH 2.6] set up conswitchp when CONFIG_VT is set |
| From: | Geert Uytterhoeven <geert@linux-m68k.org> |
| Date: | Thu, 22 Jan 2004 13:32:58 +0100 (MET) |
| Cc: | Jun Sun <jsun@mvista.com>, Linux/MIPS Development <linux-mips@linux-mips.org> |
| In-reply-to: | <20040122122832.GA4482@linux-mips.org> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <20040121162032.F29705@mvista.com> <Pine.GSO.4.58.0401221052100.1408@waterleaf.sonytel.be> <20040122122832.GA4482@linux-mips.org> |
| Sender: | linux-mips-bounce@linux-mips.org |
On Thu, 22 Jan 2004, Ralf Baechle wrote:
> On Thu, Jan 22, 2004 at 10:52:59AM +0100, Geert Uytterhoeven wrote:
> > | +#ifdef CONFIG_VT
> > | +#if defined(CONFIG_VGA_CONSOLE)
> > | + conswitchp = &vga_con;
> > | +#elif defined(CONFIG_DUMMY_CONSOLE)
> > | + conswitchp = &dummy_con;
> > | +#endif
> > | +#endif
> >
> > Isn't the #ifdef CONFIG_VT superfluous?
>
> No; if CONFIG_VT is undefined conswitchp is undefined also; DUMMY_CONSOLE
> however is still selectable if CONFIG_VT is off so there could be
> unsatisfied references to consitchp.
DUMMY_CONSOLE can be set in drivers/video/console/Kconfig only.
drivers/video/console/Kconfig is included by drivers/video/Kconfig only, and
its inclusion depends on VT.
Hence the #ifdef CONFIG_VT is superfluous, unless the above isn't true for the
MIPS tree (I checked plain 2.6.1).
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 2.6] set up conswitchp when CONFIG_VT is set, Ralf Baechle |
|---|---|
| Next by Date: | which distribution to use?, Steven Blakeslee |
| Previous by Thread: | Re: [PATCH 2.6] set up conswitchp when CONFIG_VT is set, Ralf Baechle |
| Next by Thread: | Re: [PATCH 2.6] set up conswitchp when CONFIG_VT is set, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |