[PATCH-rt] ARM: Fix dump_stack() config dependencies

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Signed-off-by: Deepak Saxena <[email protected]>


Index: linux-2.6-rt/arch/arm/kernel/traps.c
===================================================================
--- linux-2.6-rt.orig/arch/arm/kernel/traps.c
+++ 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);

-- 
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux