Skip to contentSkip to conversation

ARM: Fix dump_stack() config dependencies

PATCH-rt Applied Deepak Saxena 2 participants 2 messages Jun 1, 2006 – Jun 4, 2006 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

DEBUG_ERRORS does not depend on DEBUG_MUTEXES and the kernel will not build if the former is enabled and the later disables. Other option is to make DEBUG_ERRORS automatically enabled DEBUG_MUTEXES in the RT case.

arch/arm/kernel/traps.c +2 -0
Index: linux-2.6-rt/arch/arm/kernel/traps.c
===================================================================
@@ -178,8 +178,10 @@ void dump_stack(void)
 #ifdef CONFIG_DEBUG_ERRORS
 	__backtrace();
 	print_traces(current);
+#ifdef CONFIG_DEBUG_MUTEXES
 	show_held_locks(current);
 #endif
+#endif
 }
 
 EXPORT_SYMBOL(dump_stack);
Signature · 4 lines
Deepak Saxena - [email protected] - http://www.plexity.net

In the end, they will not say, "those were dark times,"  they will ask
"why were their poets silent?" - Bertold Brecht
Applied
#1 lore raw
Quoted 6 lines · Deepak Saxena

DEBUG_ERRORS does not depend on DEBUG_MUTEXES and the kernel will not build if the former is enabled and the later disables. Other option is to make DEBUG_ERRORS automatically enabled DEBUG_MUTEXES in the RT case.

thanks, applied.

Ingo