Skip to contentSkip to conversation

2.4.13-ac4: panic.c compile fix

PATCH New Robert Love 1 participant 1 message Oct 28, 2001

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.4.13-ac4: panic.c compile fix

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.

kernel/panic.c +1 -1
diff -urN linux-2.4.13-ac2/kernel/panic.c linux/kernel/panic.c
@@ -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