[PATCH] 2.4.13-ac4: panic.c compile fix

Robert Love (rml@tech9.net)
28 Oct 2001 16:12:16 -0500


kernel/panic.c calls the new panic_blink (blink keybd leds) on panic if
__i386__ is defined. however, panic_blink is only defined if keyboard
support is compiled in, and that is dependent on CONFIG_VT. The
attached fixes the problem. Alan, please apply.

diff -urN linux-2.4.13-ac2/kernel/panic.c linux/kernel/panic.c
--- linux-2.4.13-ac2/kernel/panic.c Fri Oct 26 15:47:34 2001
+++ linux/kernel/panic.c Fri Oct 26 23:05:41 2001
@@ -96,7 +96,7 @@
#endif
sti();
for(;;) {
-#if defined(__i386__)
+#if defined(__i386__) && defined(CONFIG_VT)
extern void panic_blink(void);
panic_blink();
#endif

Robert Love

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