Re: small patch to 2.1.87 tty_io.c

C. Scott Ananian (cananian@lcs.mit.edu)
Wed, 18 Feb 1998 16:44:15 -0500 (EST)


On Wed, 18 Feb 1998, Trevor Johnson wrote:

> The patch below eliminates this warning when compiling without CONFIG_VT:
>
> tty_io.c:1964: warning: `dev_console_driver' defined but not used
> ___
> Trevor Johnson

Looks good, but I'd like to see it reordered to be a bit clearer.
A suggested improvement is attached. [note: I've edited the patch by hand;
it may be necessary to apply it with --ignore-whitespace]
--Scott

--- linux/drivers/char/tty_io.c.orig Tue Feb 17 01:53:21 1998
+++ linux/drivers/char/tty_io.c Wed Feb 18 12:30:33 1998
@@ -1961,7 +1961,9 @@
return kmem_start;
}

-static struct tty_driver dev_tty_driver, dev_console_driver,
- dev_syscons_driver, dev_ptmx_driver;
+static struct tty_driver dev_tty_driver, dev_syscons_driver, dev_ptmx_driver;
+#ifdef CONFIG_VT
+static struct tty_driver dev_console_driver;
+#endif

/*

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu