From 31477ed8ca65bb0a3ed3de4cb6df841e6a785471 Mon Sep 17 00:00:00 2001 From: Christopher Kenna Date: Tue, 11 Dec 2012 11:39:04 -0500 Subject: Config: PREEMPT_STATE_TRACE depends on DEBUG_KERNEL. This patch makes CONFIG_PREEMPT_STATE_TRACE depend on CONFIG_DEBUG_KERNEL. Prior to this patch, selecting PREEMPT_STATE_TRACE resulted in linker errors (see below), because sched_state_name is not built unless DEBUG_KERNEL is selected. kernel/built-in.o: In function `schedule': (.sched.text+0x3d2): undefined reference to `sched_state_name' --- litmus/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litmus/Kconfig b/litmus/Kconfig index f2dbfb396883..bd6635c8de08 100644 --- a/litmus/Kconfig +++ b/litmus/Kconfig @@ -265,7 +265,7 @@ config SCHED_DEBUG_TRACE_CALLER config PREEMPT_STATE_TRACE bool "Trace preemption state machine transitions" - depends on SCHED_DEBUG_TRACE + depends on SCHED_DEBUG_TRACE && DEBUG_KERNEL default n help With this option enabled, each CPU will log when it transitions -- cgit v1.2.2