DORMANTno replies

[PATCH] Fix build error in kernel/sched_debug.c when CONFIG_PREEMPT_RT_FULL is not set

From: <hidden>
Date: 2011-08-30 09:48:32
Subsystem: the rest · Maintainer: Linus Torvalds

From: Stratos Psomadakis <redacted>

When CONFIG_PREEMPT_RT_FULL is not set, a build error occurs due to
migrate_disable task_struct member not existing. 

Trivial fix, enclose it inside an #ifdef

Signed-off-by: Stratos Psomadakis <redacted>
---
 kernel/sched_debug.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/kernel/sched_debug.c b/kernel/sched_debug.c
index dba9e40..e68cf7f 100644
--- a/kernel/sched_debug.c
+++ b/kernel/sched_debug.c
@@ -485,7 +485,9 @@ void proc_sched_show_task(struct task_struct *p, struct seq_file *m)
 	P(se.load.weight);
 	P(policy);
 	P(prio);
+#ifdef CONFIG_PREEMPT_RT_FULL
 	P(migrate_disable);
+#endif
 	P(rt.nr_cpus_allowed);
 #undef PN
 #undef __PN
-- 
1.7.6
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help