[PATCH test2] fix serial.c compile warning

From: Jesper Skov (jskov@redhat.com)
Date: Thu Jul 06 2000 - 04:38:12 EST


break_pressed is only used in regions with extra conditionals compared
to sercons.

Jesper

--- /local/linux/linux-dist/linux-2.4.0-test2/drivers/char/serial.c Thu Jul 6 11:06:39 2000
+++ serial.c Thu Jul 6 11:29:23 2000
@@ -253,8 +258,10 @@
 static int IRQ_timeout[NR_IRQS];
 #ifdef CONFIG_SERIAL_CONSOLE
 static struct console sercons;
+#if defined(CONFIG_MAGIC_SYSRQ) && !defined(MODULE)
 static unsigned long break_pressed; /* break, really ... */
 #endif
+#endif
 
 static unsigned detect_uart_irq (struct serial_state * state);
 static void autoconfig(struct serial_state * state);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jul 07 2000 - 21:00:18 EST